golang设置国内镜像

2023-11-08 21:10:01
199

golang设置国内镜像源的方法

 

go env -w GOPROXY=https://goproxy.cn,direct

 

阿里云:https://mirrors.aliyun.com/goproxy微软:https://goproxy.io七牛云:https://goproxy.cn
GoCenter:https://gocenter.io