windows安装vscode,配置golang环境
2021-06-16 12:03
标签:symbols windows com git fat -- copy gpe clone 出现的问题: 进行如下命令进行目录切换: 完成目录切换后,开始下载插件包,在切换后的目录下进入命令行界面,可以用git bash: 当下载完成后,你会发现%GOPATH%\src\github.com\golang多了一个tools目录 需要把tools目录下的所有文件拷贝到%GOPATH%\src\golang.org\x\tools下,如果没有自行创建。 这时我想偷个懒,再重新打开VSCode时,发现只有一个安装包安装失败 这时可以转换成手动安装: 将目录切换到GOPATH目录下,执行相关的go install 命令 windows安装vscode,配置golang环境 标签:symbols windows com git fat -- copy gpe clone 原文地址:https://www.cnblogs.com/mrhonest/p/10348227.html
cd %GOPATH%\src\github.com\golang
我这里的GOPATH是在D:\GoPath,大家这里一定要注意些
如果src目录下面没有github.com\golang文件夹请自行创建
git clone https://github.com/golang/tools.git toolsgo get -u -v github.com/acroca/go-symbols
go get -u -v github.com/mdempsky/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v golang.org/x/tools/cmd/godoc
go get -u -v github.com/zmb3/gogetdoc
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/fatih/gomodifytags
go get -u -v golang.org/x/tools/cmd/gorename
go get -u -v sourcegraph.com/sqs/goreturns
go get -u -v golang.org/x/tools/cmd/goimports
go get -u -v github.com/cweill/gotests/...
go get -u -v golang.org/x/tools/cmd/guru
go get -u -v github.com/josharian/impl
go get -u -v github.com/haya14busa/goplay/cmd/goplay
go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs
go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
go get -u -v github.com/alecthomas/gometalinter
gometalinter --install