GO beego 的坑
报错 以下
2020/11/11 15:33:47 INFO ▶ 0002 Initializing watcher...
go: finding module for package github.com/astaxie/beego/server/web
controllers/object.go:7:2: module github.com/astaxie/beego@latest found (v1.12.3), but does not contain package github.com/astaxie/beego/server/web
2020/11/11 15:33:49 ERROR ▶ 0003 Failed to build the application: go: finding module for package github.com/astaxie/beego/server/web
controllers/object.go:7:2: module github.com/astaxie/beego@latest found (v1.12.3), but does not contain package github.com/astaxie/beego/server/web
原因 以下
当你报这个错的时候问题就出在你包的版本上
所以你要更新你 bee 和 beego 包的版本
解决 以下
go get -u github.com/astaxie/beego@develop
go get github.com/beego/[email protected]
然后
bee new hello cd hello bee run
success....
|
请发表评论