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插件