go mod proxy

go get 经常被 404  ,出现以下错误

 dial tcp 34.64.4.113:443: connect: connection refused

使用过glide 、gvt ,在go mod 出来后再次做了尝试,依然被great fire wall 拦截,

国内的开源社区对相关包做了镜像,设置对应的proxy即可; 

GO111MODULE=on

 

https://goproxy.cn/

export GOPROXY=https://goproxy.io

export GOPROXY=https://gocenter.io

export GOPROXY=https://goproxy.cn

 

参考:https://ieevee.com/tech/2019/02/19/go-mod-proxy.html

https://juejin.im/post/5d8ee2db6fb9a04e0b0d9c8b

posted on 2020-05-08 14:02  iokde.com  阅读(484)  评论(0编辑  收藏  举报

导航