Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取的时候报cannot find package "golang.org /x/net/context",编译也报错误 #55

Open
hutulaodao opened this issue Jan 16, 2017 · 1 comment

Comments

@hutulaodao
Copy link

编译报错如下:
1、..\github.com\mattn\go-sqlite3\sqlite3.go:118:2: cannot find package "golang.org
/x/net/context" in any of:
C:\Go\src\golang.org\x\net\context (from $GOROOT)
D:\go\src\golang.org\x\net\context (from $GOPATH)

2、# github.com/beego/admin/src/models
..\github.com\beego\admin\src\models\AdminInit.go:7: imported and not used: "os"

3、# github.com/beego/admin/src/models
..\github.com\beego\admin\src\models\AdminInit.go:7: imported and not used: "os"

把相关代码注释后可以使用。
我用的是windows 7,另外建表语句没有找到在哪儿。

@WLmutou
Copy link

WLmutou commented Feb 11, 2017

golang.org /x/net/context
创建了相应的golang.org/x/ 路径
然后,下载这个回去https://github.com/golang/net.git ,编译通过了。

github.com/lib/pq

../github.com/lib/pq/conn_go18.go:45: undefined: driver.TxOptions
出现了这个,竟然也能使用。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants