社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
参考:https://www.cnblogs.com/littermonster/articles/12671284.html
编译项目时,很多Go的依赖包都无法通过go get得到,如下图:
解决方法:
打开cmd命令窗口,进入到 golang.org/x 路径下,执行如下命令:
git clone https://github.com/golang/net.git
注意:
go 在 github 上建立了一个镜像库,如https://github.com/golang/net
对应的是https://golang.org/x/net
,其他同理。
下载成功~
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!