go get设置代理

直接使用go get安装依赖总是失败,除了翻墙还可以通过设置代理的方式。 bash环境执行:

$ export GOPROXY=https://goproxy.io

这样就可以顺利go get了。