1
0
mirror of https://github.com/astaxie/beego.git synced 2025-01-12 22:07:13 +00:00
2020-08-23 21:04:34 +08:00

13 lines
206 B
Go

package context
// Renderer defines a http response renderer
type Renderer interface {
Render(ctx *Context)
}
type rendererFunc func(ctx *Context)
func (f rendererFunc) Render(ctx *Context) {
f(ctx)
}