Golang - 设置国内代理

1、windows环境:

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

2、mac环境:

export GOPROXY=https://goproxy.cn,direct
source ~/.bash_profile
posted @ 2022-03-29 10:30  李若盛开  阅读(1571)  评论(0)    收藏  举报