1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-24 10:20:54 +00:00
Beego/pkg/context/renderer.go
2020-08-06 16:07:18 +01: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)
}