​请问您的builder工程现在还能正常编译吗?

大白胖子四方脸 发布于 2016/02/01 14:39
阅读 1K+
收藏 0

@UlricQin 你好,想跟你请教个问题:


我在尝试使用您开发的dinp,在进行到builder这个工程时,无法完成编译.
首先是

root@42517b72251a:/go/src/github.com/dinp/builder# go get ./...
# github.com/dinp/builder/g
g/g.go:133: undefined: orm.DR_MySQL


我把这句注释掉后又会报一个


root@42517b72251a:/go/src/github.com/dinp/builder# go get ./...
# github.com/dinp/builder/models
models/user.go:49: cannot use int64(360000) (type int64) as type time.Duration in argument to g.Cache.Put
我再把user.go的49行注释掉后又会报


root@42517b72251a:/go/src/github.com/dinp/builder# go get ./...
# github.com/dinp/builder/routers
routers/base.go:48: this.ServeJson undefined (type *BaseController has no field or method ServeJson)
routers/base.go:53: this.ServeJson undefined (type *BaseController has no field or method ServeJson)
routers/base.go:58: this.ServeJson undefined (type *BaseController has no field or method ServeJson)
routers/index.go:22: this.TplNames undefined (type *MainController has no field or method TplNames)
routers/index.go:37: this.TplNames undefined (type *MainController has no field or method TplNames)
routers/index.go:149: this.TplNames undefined (type *MainController has no field or method TplNames)
routers/index.go:176: this.TplNames undefined (type *MainController has no field or method TplNames)
routers/page.go:45: this.BaseController.Controller.Ctx.Input.Uri undefined (type *context.BeegoInput has no field or method Uri)



后面不知道到底还有多少了...就没再进行下去...请问这是什么原因?


加载中
0
tobegit3hub
tobegit3hub

原因是beego版本更新到1.6.0后,API不兼容,需要dinp项目代码更新,参考https://groups.google.com/forum/#!topic/beego-framework/GwwFXnLACT8

go get -u github.com/beego/bee
go get -u github.com/astaxie/beego
bee fix

返回顶部
顶部