vscode安裝golang插件

在vscode中編輯、調試golang時會自動安裝插件,然而大部分均會失敗。git

解決辦法:手動安裝github

一、下載插件golang

1 cd $GOPATH/src
2 mkdir -p golang.org/x
3 cd golang.org/x
4 git clone https://github.com/golang/tools.git tools
5 git clone https://github.com/golang/lint.git lint

 

二、安裝插件spa

1 cd $GOPATH 
2 go install github.com/ramya-rao-a/go-outline
3 go install github.com/acroca/go-symbols
4 go install golang.org/x/tools/cmd/guru
5 go install golang.org/x/tools/cmd/gorename
6 go install github.com/sqs/goreturns
7 go install github.com/golang/lint/golint
相關文章
相關標籤/搜索