1、文件管理中创建目录

E:\software\go\src\golang.org\x

其中,
E:\software\go\是我的go语言安装目录

2、下载相关工具到刚才创建的目录里

网址:

https://github.com/golang/tools.git
https://github.com/golang/lint.git

linux环境下,直接用git clone,
windows下,直接进网址下载的压缩包解压,然后将两个文件:tools和lint,拖进目录E:\software\go\src\golang.org\x

3、修改代理

 go env -w GO111MODULE=on
 go env -w GOPROXY=https://goproxy.cn,direct

4、手动安装

go get -v github.com/mdempsky/gocode
go get -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
go get -v github.com/ramya-rao-a/go-outline
go get -v github.com/acroca/go-symbols
go get -v golang.org/x/tools/cmd/guru
go get -v golang.org/x/tools/cmd/gorename
go get -v github.com/cweill/gotests/gotests
go get -v github.com/fatih/gomodifytags
go get -v github.com/josharian/impl
go get -v github.com/davidrjenni/reftools/cmd/fillstruct
go get -v github.com/haya14busa/goplay/cmd/goplay
go get -v github.com/godoctor/godoctor
go get -v github.com/go-delve/delve/cmd/dlv
go get -v github.com/stamblerre/gocode
go get -v github.com/rogpeppe/godef
go get -v github.com/sqs/goreturns
go get -v golang.org/x/lint/golint

之后即可在 E:\software\go\bin 里看到安装好的插件(还不太会插入图片):


参考链接:

https://blog.csdn.net/macwinwin/article/details/108511055
https://blog.csdn.net/tankpanv/article/details/105459075


有疑问加站长微信联系(非本文作者)