Versions in this module Expand all Collapse all v0 v0.1.1 May 10, 2022 Changes in this version + func NewNode() *node + type Context struct + Method string + Params map[string]string + Path string + Req *http.Request + StatusCode int + Writer http.ResponseWriter + func NewContext(w http.ResponseWriter, req *http.Request) *Context + func (c *Context) Data(code int, data []byte) + func (c *Context) HTML(code int, html string) + 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, 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) Run(addr string) error + func (e *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) + 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) Use(middlewares ...HandlerFunc)