环境:
win7 64位系统
问题:
安装完vscode,打开.go文件时,vscode会推荐安装go扩展
go安装完成后提示下载依赖工具
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/lukehoban/go-outline
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v github.com/tpng/gopkgs
go get -u -v github.com/newhook/go-symbols
go get -u -v golang.org/x/tools/cmd/guru
其中golint
,godef由于网络问题安装失败
解决办法:直接在github
下载对应的源码,放在GOPATH下,然后go build和go install,然后重启vscode
时间: 2024-10-27 17:45:02