mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 21:50:53 +00:00
14c1b76569
remove build directory; remove githook directory;
13 lines
206 B
Go
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)
|
|
}
|