mirror of
https://github.com/astaxie/beego.git
synced 2024-11-21 20:30:55 +00:00
650fde66aa
This reverts commite284b0ddae
, reversing changes made to8ef8fd2606
.
13 lines
207 B
Go
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)
|
|
}
|