vscode安装golang扩展插件

安装完vscode,打开.go文件时,vscode会推荐安装go扩展插件,但是vscode中有些go的插件总是提示安装fail。如golint插件,解决办法如下:

  1. cd $GOPATH/src/golang.org/x/
  2. git clone https://github.com/golang/tools.git
  3. cd $GOPATH/src/github.com/
  4. git clone https://github.com/golang/lint.git
  5. go install github.com/golang/lint/golint

猜你喜欢

转载自my.oschina.net/u/2245781/blog/1823271