Documentation ¶
Index ¶
- Variables
- func DefaultVars(req *http.Request, m map[string]interface{}) map[string]interface{}
- func Form(req *http.Request, model interface{}, errs *validator.StructErrors) htmlform.Form
- func Ftos(req *http.Request, model interface{}) error
- func HTML(w http.ResponseWriter, status int, name string, binding interface{}, ...)
- func New() *render.Render
- func Vtom(req *http.Request, errs *validator.StructErrors) func(field string) map[string]interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var Render = New()
Render is a global instance of github.com/unrolled/render.Render
Functions ¶
func DefaultVars ¶
DefaultVars adds the default vars (User and Session) to the data map
func HTML ¶
func HTML(w http.ResponseWriter, status int, name string, binding interface{}, htmlOpt ...render.HTMLOptions)
HTML is an alias to github.com/unrolled/render.Render.HTML
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.