duan19750503 2016-12-29 02:37
浏览 432


After using go get to get on github.com/mattn/go-sqlite3 I get an error stating "golang.org/x/net/context".

I'm not sure as to where to look to resolve this issue

  • 写回答

2条回答 默认 最新

  • duanqiangwu9332 2016-12-29 02:42

    Did you download the source code for the context package?

    One common way to do that is to use the bundled tool go get by doing:

    go get golang.org/x/net/context

    This should import the source code for the context package into your Go workspace which is defined by the GOPATH environment variable. (In your case the package's code will be downloaded to $GOPATH/src/golang.org/x/net/context.)

    Alternatively you can do a go get on the parent package to include all of its dependencies automatically without needing to find and download them one at a time. For example:

    go get github.com/mattn/go-sqlite3
    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 微信公众号如何开发网页
  • ¥15 h3.6m 人类行为预测论文复现
  • ¥50 wordpress项目注册报失败刷新后其实是成功状态,请求排查原因
  • ¥20 linxu服务器僵尸进程不释放,代码如何修改?
  • ¥15 pycharm激活不成功
  • ¥40 如果update 一个列名为参数的value
  • ¥15 基于51单片机的水位检测系统设计中LCD1602一直不显示
  • ¥15 OCS2安装出现问题,请大家给点意见
  • ¥15 ros小车启动launch文件报错
  • ¥15 vs2015到期想登陆但是登陆不上