go-get 获取所有依赖

1.get-get下载

go get -d -v ./...

-d标志只下载代码包,不执行安装命令;
-v打印详细日志和调试日志。这里加上这个标志会把每个下载的包都打印出来;
./...这个表示路径,代表当前目录下所有的文件。

2.手动下载

/src/golang.org/x  //下面的包,可能会超时,可用github上下载

git clone https://github.com/golang/sys.git

git clone https://github.com/golang/net.git

git clone https://github.com/golang/text.git

相关链接

https://www.jianshu.com/p/aaa533f45ceb

相关文章:

  • 2022-12-23
  • 2021-05-01
  • 2021-12-08
  • 2022-02-18
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2021-09-30
  • 2021-12-18
  • 2021-09-26
  • 2022-12-23
  • 2021-12-11
相关资源
相似解决方案