Golang学习----下载依赖包被墙设置

被墙设置

  • 在确保GOPATH 已经设置
  • 添加环境变量 GO111MODULE = on
  • 添加环境变量 GOPROXY = https://goproxy.io
    • 这里的https://goproxy.io 可以换成阿里的https://mirrors.aliyun.com/goproxy
原文地址:https://www.cnblogs.com/bananafish/p/13765516.html