go get golang.org/x/ 失败或者time out

 去github搜索你所需要的类库,通过手动下载的方式进行操作:

官方网址上找到你需要的类库: https://github.com/golang

# 进入GOPATH的src目录:
cd ~/go/src

# 创建目录:
mkdir -p golang.org/x/

# 进入:
cd golang.org/x

# 下载
git clone https://github.com/golang/xxx.git
发布了77 篇原创文章 · 获赞 123 · 访问量 30万+

猜你喜欢

转载自blog.csdn.net/han0373/article/details/90437635