1混滔、文件管理中創(chuàng)建目錄
E:\software\go\src\golang.org\x
其中烹笔,
E:\software\go\是我的go語言安裝目錄
2伙窃、下載相關(guān)工具到剛才創(chuàng)建的目錄里
網(wǎng)址:
https://github.com/golang/tools.git
https://github.com/golang/lint.git
linux環(huán)境下饿这,直接用git clone浊伙,
windows下撞秋,直接進網(wǎng)址下載的壓縮包解壓,然后將兩個文件: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