Skip to content

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

@hutulaodao

Description

@hutulaodao

编译报错如下:
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,另外建表语句没有找到在哪儿。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions