本以为VSC在商城装上插件后就能拎包入住,F5的时候我当场好家伙
于是无脑Install…
Installing github.com/nsf/gocode FAILED Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED Installing github.com/ramya-rao-a/go-outline FAILED Installing github.com/acroca/go-symbols FAILED Installing github.com/rogpeppe/godef FAILED Installing github.com/sqs/goreturns FAILED Installing github.com/golang/lint/golint FAILED Installing github.com/derekparker/delve/cmd/dlv FAILED ......
好家伙,我当场在VSC里的terminal运行" go env ",其中显示
set GOPROXY=https://proxy.golang.org,direct
然后在cmd里Ping了一下,好家伙
所以我们只需要更改好家伙的cn源就行了…
直接在VSC的terminal输入并回车
go env -w GOPROXY="https://goproxy.cn"
然后重启VSC,再点“Install all”
好家伙,搞定了
帮到的话就点个好家伙的赞吧好家伙~