Linux配置

在.bash_profile中增加环境变量,这里使用百度的proxy仓库

export GOPROXY=https://goproxy.baidu.com/

也可使用: http://goproxy.cn

Intellij IDEA配置

goland没用过,不过是同一个公司的IDE,配置应该差不多

Settings ->Language & Frameworks Go -> Go Modules

go 配置国内仓库

相关文章: