goproxy地址
- 阿里云 https://mirrors.aliyun.com/goproxy/
- 腾讯云 https://mirrors.cloud.tencent.com/go/
- 七牛云 https://goproxy.cn/
- 开源版 https://goproxy.io/
- nexus社区 https://gonexus.dev/
使用方法如下
方法1: Bash命令行
# Enable the go modules feature
export GO111MODULE=on
# Set the GOPROXY environment variable
export GOPROXY=https://mirrors.aliyun.com/goproxy/
方法2: windows命令行
# Enable the go modules feature
set GO111MODULE=on
# Set the GOPROXY environment variable
set GOPROXY=https://mirrors.aliyun.com/goproxy/
方法3: Go>=1.13
# Set the GOPROXY environment variable
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct