加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

关于golang.org/x包问题

发布时间:2020-12-16 19:07:03 所属栏目:大数据 来源:网络整理
导读:由于谷歌被墙,跟谷歌相关的模块无法通过go get来下载 解决方法: git clone https://github .com /golang/net .git $GOPATH/src/github .com /golang/netgit clone https://github .com /golang/sys .git $GOPATH/src/github .com /golang/sysgit clone htt

由于谷歌被墙,跟谷歌相关的模块无法通过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

如果是Windows下,最后一条可以替换为mklink命令,或者直接拷贝文件夹修改一下名称即可。

原文地址:https://studygolang.com/articles/7087

个人微信公众号:

作者:jiankunking 出处:http://blog.csdn.net/jiankunking

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读