由于谷歌被墙,跟谷歌相关的模块无法通过go get来下载,解决方法:


 

git clone https://github.com/golang/net.git $GOPATH/src/github.com/golang/net

git clone https://github.com/golang/sys.git $GOPATH/src/github.com/golang/sys

git clone https://github.com/golang/tools.git $GOPATH/src/github.com/golang/tools

ln -s $GOPATH/src/github.com/golang $GOPATH/src/golang.org/x

本文来自:CSDN博客

感谢作者:qdx411324962

查看原文:Go学习笔记:关于golang.org/x包问题

相关文章:

  • 2022-12-23
  • 2021-05-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2021-06-09
  • 2021-06-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-11
  • 2021-10-27
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2021-05-05
相关资源
相似解决方案