安装 bee 的时候报错 :go get golang.org/x 包失败解决方法

原创 学习 GO
阅读数: 1139 2021年01月24日


依赖包的问题,网络也无法下载到 golang.org 的代码,通过 github 自己下载

1、新建文件夹 src\golang.org\x

2、clone 这几个包:

https://github.com/golang/crypto.git

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

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

https://github.com/golang/mod.git


//下面的包没事也都安装

https://github.com/golang/tools.git

https://github.com/golang/mock.git

https://github.com/golang/time.git

https://github.com/golang/mod.git


打开 https://github.com/golang,找到缺的报,获得 git 地址,然后到 src\golang.org\x 目录下 clone 即可。

或者如果有类似的报错,自己安装用 git 安装。


phpriji.cn | 网站地图 | 沪ICP备17015433号-1