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"

posted @ 2022-05-02 09:40  专职  阅读(2882)  评论(0编辑  收藏  举报