Documentation ¶
Index ¶
- func Contexter() macaron.Handler
- type Context
- func (ctx *Context) GetErrMsg() string
- func (ctx *Context) HTML(status int, name base.TplName)
- func (ctx *Context) Handle(status int, title string, err error)
- func (ctx *Context) HasApiError() bool
- func (ctx *Context) HasError() bool
- func (ctx *Context) RenderWithErr(msg string, tpl base.TplName, form interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Context ¶
Context represents context of a request.
func (*Context) HasApiError ¶
HasError returns true if error occurs in form validation.
Click to show internal directories.
Click to hide internal directories.