解决go无法下载包依赖问题 2019年11月25日16:00:16Golang评论432阅读模式 摘要由于网络原因,go无法访问相应地址下载包依赖时,可采取该方式。 由于某些原因,go无法访问相应地址下载包依赖时,可采取下面方式: 编辑文件/etc/profile # Enable the go modules feature export GO111MODULE=on # Set the GOPROXY environment variable export GOPROXY=https://goproxy.io source /etc/profile