Versions in this module Expand all Collapse all v0 v0.0.2 Aug 10, 2022 Changes in this version + type Context struct + func (c *Context) Data(code int, data []byte) + func (c *Context) Fail(code int, err string) + func (c *Context) HTML(code int, name string, data interface{}) + func (c *Context) JSON(code int, obj interface{}) + func (c *Context) Next() + func (c *Context) Param(key string) string + func (c *Context) PostForm(key string) string + func (c *Context) Query(key string) string + func (c *Context) SetHeader(key string, value string) + func (c *Context) Status(code int) + func (c *Context) String(code int, format string, values ...interface{}) + type Engine struct + func Default() *Engine + func New() *Engine + func (e *Engine) GET(pattern string, handler HandlerFunc) + func (e *Engine) LoadHTMLGlob(pattern string) + func (e *Engine) POST(pattern string, handler HandlerFunc) + func (e *Engine) Run(addr string) error + func (e *Engine) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (e *Engine) SetFuncMap(funcMap template.FuncMap) + type H map[string]interface + type HandlerFunc func(*Context) + func Logger() HandlerFunc + func Recovery() HandlerFunc + type RouterGroup struct + func (group *RouterGroup) GET(pattern string, handler HandlerFunc) + func (group *RouterGroup) Group(prefix string) *RouterGroup + func (group *RouterGroup) POST(pattern string, handler HandlerFunc) + func (group *RouterGroup) Static(relativePath string, root string) + func (group *RouterGroup) Use(middlewares ...HandlerFunc)