VsCode install Go-language development environment

一、将以下代码另存为BAT并执行(确保Windows系统、并有E盘)

mkdir e:\download\github.com\mdempsky
cd e:\download\github.com\mdempsky/
git clone https://github.com/mdempsky/gocode

mkdir e:\download\github.com\ramya-rao-a
cd e:\download\github.com\ramya-rao-a
git clone https://github.com/ramya-rao-a/go-outline

mkdir e:\download\github.com\acroca
cd e:\download\github.com\acroca
git clone https://github.com/acroca/go-symbols

mkdir e:\download\github.com\stamblerre
cd e:\download\github.com\stamblerre
git clone https://github.com/stamblerre/gocode

mkdir e:\download\github.com\ianthehat
cd e:\download\github.com\ianthehat
git clone https://github.com/ianthehat/godef

mkdir e:\download\github.com\sqs
cd e:\download\github.com\sqs
git clone https://github.com/sqs/goreturns

mkdir e:\download\golang.org\x
cd e:\download\golang.org\x
git clone https://github.com/golang/tools.git tools
git clone https://github.com/golang/lint


第二步:将download中的github.com和golang.org目录拷到 %GOPATH%\src目录中


第三步:将以下代码另存为BAT,并在%GOPATH%目录下执行
go install github.com/mdempsky/gocode
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/stamblerre/gocode
go install github.com/ianthehat/godef
go install github.com/sqs/goreturns
go install golang.org/x/lint/golint

第四步:将vscode的bin插件拷到%GOPATH%bin目录中

 The fourth step of the bin file, please download this

https://download.csdn.net/download/lsjsoft/11192237

Guess you like

Origin blog.csdn.net/lsjsoft/article/details/90414999