vscode插件列表選擇go,安裝便可,其餘插件暫不安裝git
直接vscode-go,而後點下面的go-tools就能找到github
go get -u -v github.com/ramya-rao-a/go-outline go get -u -v github.com/acroca/go-symbols go get -u -v github.com/mdempsky/gocode go get -u -v github.com/rogpeppe/godef go get -u -v golang.org/x/tools/cmd/godoc go get -u -v github.com/zmb3/gogetdoc go get -u -v golang.org/x/lint/golint go get -u -v github.com/fatih/gomodifytags go get -u -v golang.org/x/tools/cmd/gorename go get -u -v sourcegraph.com/sqs/goreturns go get -u -v golang.org/x/tools/cmd/goimports go get -u -v github.com/cweill/gotests/... go get -u -v golang.org/x/tools/cmd/guru go get -u -v github.com/josharian/impl go get -u -v github.com/haya14busa/goplay/cmd/goplay go get -u -v github.com/uudashr/gopkgs/cmd/gopkgs go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct go get -u -v github.com/alecthomas/gometalinter gometalinter --install
注: 這裏golang.org是無法訪問的,因此須要摘出這些urlgolang
- 這部分包經過golang git提供的mirro庫來下載安裝:https://github.com/golang就有 go get -d golang.org/x/tools/cmd/godoc go get -d golang.org/x/lint/golint go get -d golang.org/x/tools/cmd/gorename go get -d golang.org/x/tools/cmd/goimports go get -d golang.org/x/tools/cmd/guru 使用這些命令(裝一些常見的包go net/text/sys/sync/crypto/tools/lint) mkdir -pv $GOPATH/src/golang.org/x cd $GOPATH/src/golang.org/x git clone https://github.com/golang/net.git git clone https://github.com/golang/text.git git clone https://github.com/golang/sync.git git clone https://github.com/golang/sync.git git clone https://github.com/golang/crypto.git git clone https://github.com/golang/tools.git git clone https://github.com/golang/lint.git - 正常剩下的這部分包 go get -d github.com/ramya-rao-a/go-outline go get -d github.com/acroca/go-symbols go get -d github.com/mdempsky/gocode go get -d github.com/rogpeppe/godef go get -d github.com/zmb3/gogetdoc go get -d github.com/fatih/gomodifytags go get -d sourcegraph.com/sqs/goreturns go get -d github.com/cweill/gotests/... go get -d github.com/josharian/impl go get -d github.com/haya14busa/goplay/cmd/goplay go get -d github.com/uudashr/gopkgs/cmd/gopkgs go get -d github.com/davidrjenni/reftools/cmd/fillstruct go get -d github.com/alecthomas/gometalinter
~/go/src/golang.org/x $: ls crypto lint net sync sys text tools
- 選擇對應的平臺下載 go get -d github.com/go-delve/delve/cmd/dlv
- 安裝 go get github.com/ramya-rao-a/go-outline go get github.com/acroca/go-symbols go get github.com/mdempsky/gocode go get github.com/rogpeppe/godef go get github.com/zmb3/gogetdoc go get github.com/fatih/gomodifytags go get sourcegraph.com/sqs/goreturns go get github.com/cweill/gotests/... go get github.com/josharian/impl go get github.com/haya14busa/goplay/cmd/goplay go get github.com/uudashr/gopkgs/cmd/gopkgs go get github.com/davidrjenni/reftools/cmd/fillstruct go get github.com/alecthomas/gometalinter go get github.com/go-delve/delve/cmd/dlv - 執行安裝 gometalinter --install