0


[Go]配置国内镜像源

配置

Windows

选一个

go env-wGOPROXY=https://goproxy.cn,direct
go env-wGOPROXY=https://mirrors.aliyun.com/goproxy,direct
Mac/Linux
exportGOPROXY=https://goproxy.cn
exportGOPROXY=https://mirrors.aliyun.com/goproxy

查看环境配置

查看GOPROXY是否配置成功。

go env

其他镜像地址


本文转载自: https://blog.csdn.net/malu_record/article/details/133820642
版权归原作者 码鹿的笔记 所有, 如有侵权,请联系我们删除。

“[Go]配置国内镜像源”的评论:

还没有评论