1. 下载golang安装包:https://golang.google.cn/dl/
2. 配置github加速:git config --global url."https://gitclone.com/github.com/".insteadOf https://github.com/
3. 配置被墙的替代路径:git config --global url."https://github.com/golang/".insteadOf https://golang.org/x/
4. 安装vscode提示安装相关插件
5. 插件安装完毕后,清除配置:
git config --global --unset url.https://gitclone.com/github.com/.insteadof
git config --global --unset url.https://github.com/golang/.insteadof
或者设置代理:
go env -w GOPROXY=https://goproxy.cn,direct
博客介绍了Golang的安装与环境配置方法。包括从官网下载安装包,配置github加速和被墙替代路径,在vscode中安装相关插件,插件安装完成后可清除配置或设置代理。

237

被折叠的 条评论
为什么被折叠?



