1
0
mirror of https://github.com/astaxie/beego.git synced 2025-01-10 11:37:13 +00:00
Beego/server/web/context/renderer.go

13 lines
206 B
Go
Raw Normal View History

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