请你一定不要停下来成为你想成为的人
           --Please don't stop to be who you want to be

GO beego 的坑


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/bee@v1.12.3

然后

bee new hello
cd hello
bee run

success....

 



posted on 2020-11-15 00:45  刘宽宇  阅读(1664)  评论(0编辑  收藏  举报

导航