golang中GOPROXY代理设置


设置GOPROXY代理为阿里云

go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/

powershell指定

$env:GOPROXY = "https://mirrors.aliyun.com/goproxy/"

设置GOPROXY代理商为七牛云

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

powershell指定

$env:GOPROXY="https://goproxy.cn"