1、在%GOPATH%\src\ 目录下,建立golang.org 文件夹,并再新建x文件夹。 目录为 "%GOPATH\src\golang.org\x\"
2、进入%GOPATH\src\golang.org\x\目录
3、完成目录切换后,开始下载插件包:git clone https://github.com/golang/tools.git tools
4、进入“%GOPATH”目录,执行:
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/josharian/impl
go install github.com/rogpeppe/godef
go install github.com/sqs/goreturns
go install github.com/golang/lint/golint
go install github.com/cweill/gotests/gotests
相关包
go get -u -v github.com/lukehoban/go-find-references
有疑问加站长微信联系(非本文作者)