beego 用golang 做http开发的框架
发布时间:2020-12-16 18:36:51 所属栏目:大数据 来源:网络整理
导读:官网 http://beego.me 直接在router.go 中写 beego.Any("/foo",func(ctx *context.Context) { ctx.WriteString("hello world") }) 发现会报错 routers/router.go:12: undefined: context in context.Context 解决办法 import( "github.com/astaxie/beego/con
官网 http://beego.me 直接在router.go 中写 beego.Any("/foo",func(ctx *context.Context) { routers/router.go:12: undefined: context in context.Context
解决办法 import( "github.com/astaxie/beego/context" ) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |