-
Version of Go and beego bee2.0 go 1.15.2 beego2.0
-
go env
➜ beego2 git:(update) ✗ go env GO111MODULE="on" GOARCH="amd64" GOBIN="" GOCACHE="/Users/c/Library/Caches/go-build" GOENV="/Users/c/Library/Application Support/go/env" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="darwin" GOINSECURE="" GONOPROXY="" GONOSUMDB="" GOOS="darwin" GOPATH="/Users/c/go" GOPRIVATE="" GOPROXY="https://goproxy.io" GOROOT="/usr/local/go" GOSUMDB="sum.golang.org" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64" GCCGO="gccgo" ...
-
What did you do?
go get -u github.com/beego/bee/v2
go get -u github.com/beego/beego/v2
bee fix -t 2
- 结果 orm 不支持了
2020/12/17 11:00:32 ERROR ▶ 0004 Failed to build the application: # beego2Project/models models/MyModel.go:53:9: cannot use params (type "github.com/beego/beego/v2/adapter/orm".Params) as type "github.com/beego/beego/v2/client/orm".Params in argument to o.QueryTable(new(MyModel)).Filter(“id”, id).Update