golang配置 GoGetProxyConfig,goproxy.io的介绍

因为墙的原因,直接用个代理来获取各种各样的包

而goproxy.io是一个全球代理,为 Go 模块而生

官网 https://goproxy.io/zh/

一 代码

#Windows command line
$ set http_proxy=http://proxy.example.com:port

# git
$ git config [--global] http.proxy http://proxy.example.com:port

# mercurial
# Edit ~/.hgrc 
[http_proxy]
host=proxy.example.com:port

# svn
# Edit ~/.subversion/servers 
[Global] 
http-proxy-host=proxy.example.com
http-proxy-port=xxxx 

 

posted @ 2021-01-03 17:43  lgp20151222  阅读(301)  评论(0编辑  收藏  举报