1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-18 01:40:54 +00:00
Beego/context/renderer.go

13 lines
207 B
Go
Raw Normal View History

2020-07-22 14:50:08 +00:00
package context
// Renderer defines an http response renderer
2020-07-22 14:50:08 +00:00
type Renderer interface {
Render(ctx *Context)
}
type rendererFunc func(ctx *Context)
func (f rendererFunc) Render(ctx *Context) {
f(ctx)
}