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....

 



相关文章:

  • 2021-07-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2023-01-11
  • 2021-09-21
  • 2022-01-12
  • 2021-08-03
猜你喜欢
  • 2021-06-27
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案