vscode安装golang插件失败问题

vscode安装golang插件失败问题

  • dlv
  • go-outline
  • go-symbols
  • gocode-gomod
  • gocode 代码补全
  • godef 代码跳转
  • golint
  • gopkgs
  • gorename
  • goreturns
  • guru

执行如下命令(需要安装git)

git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net --depth=1

git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys --depth=1

git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools --depth=1

git clone https://github.com/golang/lint.git $GOPATH/src/github.com/golang/lint --depth=1

然后将$GOPATH/src/github.com/golang拷贝到$GOPATH/src/golang.org/x目录下(linux可以进行软链接:ln -s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x

最后安装golang插件

上一篇:关于java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.的问题


下一篇:win10中,vscode安装go插件排雷指南