Linux or Mac os
# 配置 GOPROXY 环境变量
$ export GOPROXY=https://proxy.golang.com.cn,direct
Window powershell
# 配置 GOPROXY 环境变量
$env:GOPROXY = "https://proxy.golang.com.cn,direct"
Linux or Mac os
# 配置 GOPROXY 环境变量
$ export GOPROXY=https://proxy.golang.com.cn,direct
Window powershell
# 配置 GOPROXY 环境变量
$env:GOPROXY = "https://proxy.golang.com.cn,direct"