1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-05 04:40:55 +00:00
Beego/pkg/context/renderer.go
2020-07-22 22:55:59 +08:00

13 lines
207 B
Go

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