Fork me on GitHub

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

被墙设置

  • 在确保GOPATH 已经设置
  • 添加环境变量 GO111MODULE = on
  • 添加环境变量 GOPROXY = https://goproxy.io
    • 这里的https://goproxy.io 可以换成阿里的https://mirrors.aliyun.com/goproxy
posted @ 2020-10-03 21:07  Banana_Fish  阅读(140)  评论(0编辑  收藏  举报