设置GOPROXY代理:
1 | go env -w GOPROXY=https://goproxy.cn,direct |
设置GOPRIVATE来跳过私有库,比如常用的Gitlab或Gitee,中间使用逗号分隔:
1 | go env -w GOPRIVATE=*.gitlab.com,*.gitee.com |
1 | go env -w GOPROXY=https://goproxy.cn,direct |
1 | go env -w GOPRIVATE=*.gitlab.com,*.gitee.com |
Update your browser to view this website correctly.&npsb;Update my browser now