配置好windows下go的环境变量后:以管理员打开cmd,复制下列全部命令即可安装所有visual code推荐的但是无法安装的go插件(最后一个安装失败,暂无调查原因)。
go get -v github.com/ramya-rao-a/go-outline
go get -v github.com/fatih/gomodifytags
go get -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
go get -v github.com/cweill/gotests/gotests
go get -v github.com/josharian/impl
go get -v github.com/haya14busa/goplay/cmd/goplay
go get -v github.com/go-delve/delve/cmd/dlv
go get -v honnef.co/go/tools/cmd/staticcheck
go get -v golang.org/x/tools/gopls
go get -v -d github.com/go-delve/delve/cmd/dlv@master
安装成功后,bin目录下如图: