在安裝Visual Studio Code插件的時候,由於谷歌的限制,在下載下列插件的時候會報錯: 下麵介紹如果繞過封鎖去獲取相應的插件: 前提是設置好 %GOPATH% 之後再執行以下操作: 可以參考下麵的網址設置Visual Studio Code http://www.cnblogs.com/ ...
在安裝Visual Studio Code插件的時候,由於谷歌的限制,在下載下列插件的時候會報錯:
go get -u -v github.com/nsf/gocode go get -u -v github.com/rogpeppe/godef go get -u -v github.com/golang/lint/golint go get -u -v github.com/lukehoban/go-find-references go get -u -v github.com/lukehoban/go-outline go get -u -v sourcegraph.com/sqs/goreturns go get -u -v golang.org/x/tools/cmd/gorename go get -u -v github.com/tpng/gopkgs go get -u -v github.com/newhook/go-symbols
下麵介紹如果繞過封鎖去獲取相應的插件:
md %GOPATH%\src\github.com\golang cd %GOPATH%\src\github.com\golang git clone https://github.com/golang/tools.git tools md %GOPATH%\src\golang.org\x\tools xcopy /s /e %GOPATH%\src\github.com\golang\tools
前提是設置好 %GOPATH%
之後再執行以下操作:
go install github.com/nsf/gocode go install sourcegraph.com/sqs/goreturns go install github.com/golang/lint/golint go install github.com/newhook/go-symbols go install golang.org/x/tools/cmd/guru go install golang.org/x/tools/cmd/gorename go install github.com/rogpeppe/godef go install github.com/lukehoban/go-outline
可以參考下麵的網址設置Visual Studio Code
http://www.cnblogs.com/zsy/archive/2016/02/28/5223957.html