1
0
mirror of https://github.com/astaxie/beego.git synced 2024-12-25 18:50:51 +00:00
Beego/context/renderer.go
2017-05-17 20:38:59 +03: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)
}