Versions in this module Expand all Collapse all v1 v1.1.1 Dec 2, 2021 Changes in this version + const NODEDEFAULT + const NODEPARAM + const NODEWILDCARD + func Recovery() handleFunc + type Context struct + Code int + Method string + Params map[string]string + Path string + R *http.Request + W http.ResponseWriter + func NewContext(w http.ResponseWriter, r *http.Request) *Context + func (c *Context) Error(code int, err interface{}) + func (c *Context) FormValue(k string) string + func (c *Context) Get(k string) interface{} + func (c *Context) HTML(code int, filename string, obj interface{}) + func (c *Context) JSON(code int, obj interface{}) + func (c *Context) Next() + func (c *Context) Param(k string) string + func (c *Context) PostFormValue(k string) string + func (c *Context) Set(k string, v interface{}) + func (c *Context) SetHeader(k, v string) + func (c *Context) SetStatus(code int) + func (c *Context) String(code int, format string, val string) + type Engine struct + HTMLTemplate *template.Template + func Default() *Engine + func New() *Engine + func (e *Engine) LoadHTMLFiles(filenames ...string) + func (e *Engine) LoadHTMLGlob(pattern string) + func (e *Engine) Run(addr string) + func (e *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) + type H map[string]interface + type Route struct + func NewRoute() *Route + func (r *Route) GET(path string, handler handleFunc) + func (r *Route) POST(path string, handler handleFunc) + func (r *Route) Static(prefix, root string) + func (r *Route) Use(f handleFunc)