问题描述 go get 依赖包失败,502 Bad gateway 解决办法 # 临时 export GOPROXY="https://goproxy.cn" go get -u xxxx # 或者直接永久生效 go env -w GOPROXY="https://goproxy.cn"