安装go语言插件

环境win10+git bash

cd $GOPATH/src
mkdir acroca cweill derekparker go-delve josharian karrick mdempsky pkg ramya-rao-a rogpeppe sqs uudashr

cd acroca
git clone https://github.com/acroca/go-symbols.git

cd cweill
git clone https://github.com/cweill/gotests.git

cd derekparker
git clone https://github.com/derekparker/delve.git

cd go-delve/
git clone https://github.com/go-delve/delve.git

cd ../josharian/
git clone https://github.com/josharian/impl.git

cd ../karrick/
git clone https://github.com/karrick/godirwalk.git

cd ../mdempsky/
git clone https://github.com/mdempsky/gocode.git

cd ../pkg/
git clone https://github.com/pkg/errors.git

cd ../ramya-rao-a/
git clone https://github.com/ramya-rao-a/go-outline.git

cd ../rogpeppe/
git clone https://github.com/rogpeppe/godef.git

cd ../sqs/
git clone https://github.com/sqs/goreturns.git

cd ../uudashr/
git clone https://github.com/uudashr/gopkgs.git

然后在$GOPATH/src目录下创建目录

mkdir -p golang.org/x

然后下载另外四个包

cd golang.org/x
git clone https://github.com/golang/tools.git
git clone https://github.com/golang/lint.git
git clone https://github.com/golang/mod.git
git clone https://github.com/golang/xerrors.git

最后安装我们下载的包

go install github.com/uudashr/gopkgs/cmd/gopkgs
go install github.com/rogpeppe/godef
go install github.com/sqs/goreturns
go install github.com/derekparker/delve/cmd/dlv
go install github.com/cweill/gotests
go install github.com/josharian/impl
go install golang.org/x/tools/cmd/guru
go install golang.org/x/tools/cmd/gorename
go install golang.org/x/lint/golint

 

posted @ 2020-09-08 14:58  胖胖咩  阅读(449)  评论(0)    收藏  举报