VSCode配置Go环境安装依赖github代码失败
https://gitee.com/smallinsect/MyVSCode
查看Go的GOPATH路径
命令 go env
上面链接里面有个src.rar文件,将里面的文件解压到%GOPATH%src路径下,我设置的GOPATH是d:\Go\gopath
然后在这个文件路径打开终端,执行如下命令
go install github.com/mdempsky/gocode
go install github.com/uudashr/gopkgs/cmd/gopkgs
go install github.com/ramya-rao-a/go-outline
go install github.com/acroca/go-symbols
go install golang.org/x/tools/cmd/guru
go install golang.org/x/tools/cmd/gorename
go install github.com/go-delve/delve/cmd/dlv
go install github.com/stamblerre/gocode
go install github.com/rogpeppe/godef
go install github.com/sqs/goreturns
go install golang.org/x/lint/golint
安装完,VSCode就解决安装插件失败问题了
执行Go代码,还需要做一些配置