官网 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/context" )
官网 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/context" )