Versions in this module Expand all Collapse all v0 v0.0.2 Sep 19, 2018 Changes in this version + func Tree() *node + type App struct + MiddlewareList []Middleware + Prefix string + Requests []Path + func NewApp() *App + func (app *App) ANY(url string, handler Handler) + func (app *App) AppendReqAndResp(url, method string, handler Handler) + func (app *App) DELETE(url string, handler Handler) + func (app *App) Find(url, method string) Handler + func (app *App) GET(url string, handler Handler) + func (app *App) Group(prefix string, middleware ...Middleware) + func (app *App) HEAD(url string, handler Handler) + func (app *App) OPTIONS(url string, handler Handler) + func (app *App) POST(url string, handler Handler) + func (app *App) PUT(url string, handler Handler) + type Context struct + Request *http.Request + Response *http.Response + UserValue map[string]interface{} + func NewContext(req *http.Request) *Context + func (ctx *Context) Json(code int, Body map[string]interface{}) + func (ctx *Context) LocalIP() string + func (ctx *Context) Method() string + func (ctx *Context) Path() string + func (ctx *Context) SetContentType(contentType string) + func (ctx *Context) SetCookie(cookie *http.Cookie) + func (ctx *Context) SetStatusCode(code int) + func (ctx *Context) SetUserValue(key string, value interface{}) + func (ctx *Context) Write(code int, Header map[string]string, Body string) + func (ctx *Context) WriteString(Body string) + type Handler func(ctx *Context) + type Middleware func(handler Handler) Handler + type Path struct + Method string + URL string