go get报错:unrecognized import path “golang.org/x/net/context”…
今天安装gin框架,首先下载gin,命令如下:
go get github.com/mattn/go-sqlite3
结果报错:
package golang.org/x/net/context: unrecognized import path "golang.org/x/net/context" (https fetch: Get https://golang.org/x/net/context?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.)
操作的办法就是:
| 1 2 3 4 |
|
安装了这个net包,然后再去安装go-sqlite3,就安装成功了。
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
