开发者社区 问答 正文

各位,我 go get 怎么老是报错?报错

我想获取 go 的mongo包,结果失败

获取go 的 mysql 也获取不到

我无解了

展开
收起
爱吃鱼的程序员 2020-06-22 22:35:16 397 分享 版权
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    你装了git工具了吗?墙的问题?okjimmykuu说要安装hg和bzr的版本控制工具,因为有的包不支持git

    goget在国内不稳定.

    靠谱的做法是直接下载zip,然后手工配置到$GOPATH目录.

    mgo我是从这里下的:<atarget="_blank"rel="nofollow">http://<spanstyle="line-height:1.5;font-size:10pt;">github.com/skynetservices/mgo<spanstyle="line-height:1.5;font-size:10pt;">

    <divclass="ref">

    引用来自“chai2010”的答案

    <divclass=ref_body>

    goget在国内不稳定.

    靠谱的做法是直接下载zip,然后手工配置到$GOPATH目录.

    mgo我是从这里下的:<atarget="_blank"rel="nofollow">http://<spanstyle="line-height:1.5;font-size:10pt;">github.com/skynetservices/mgo<spanstyle="line-height:1.5;font-size:10pt;">

    2020-06-22 22:35:32
    赞同 展开评论