解决vscode无法安装golang相关插件的问题 - 即无法直连golang.org的问题

喜欢挂vpn或者代理的请无视本文。

其实golang.org上的插件在github.com上都有镜像,直接

  git clone https://github.com/golang/tools

  git clone https://github.com/golang/net

  git clone https://github.com/golang/lint

,然后移到 $GOPATH/src/golang.org/x/ 下面即可。

如果还需要其他的,可在 https://github.com/golang 下面查找。

然后再点击vscode中的安装,就可以了。

猜你喜欢

转载自www.cnblogs.com/larryzeal/p/9265212.html