1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-19 09:30:55 +00:00
Beego/server/web/context/renderer.go
Ming Deng 14c1b76569 remove pkg directory;
remove build directory;
remove githook directory;
2020-10-08 18:29:36 +08: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)
}