golang的goproxy配置 a year ago
1.首先开启go module
go env -w GO111MODULE=on // Windows export GO111MODULE=on // macOS 或 Linux
2.配置goproxy:
阿里配置:
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/ // Windows
export GOPROXY=https://mirrors.aliyun.com/goproxy/ // macOS 或 Linux
七牛云配置:
go env -w GOPROXY=https://goproxy.cn // Windows
export GOPROXY=https://goproxy.cn // macOS 或 Linux
- 下一篇: react: copy