Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMiddleWare ¶
func NewMiddleWare() *middleWare
Types ¶
type Context ¶
type Context struct { Writer http.ResponseWriter Request *http.Request Method string Path string Params map[string]string // middlewares MiddleWares []StupidHandler // contains filtered or unexported fields }
func NewContext ¶
func NewContext(w http.ResponseWriter, r *http.Request) *Context
func (*Context) ParamByKey ¶
func (*Context) QueryByKey ¶
func (*Context) SetStatusCode ¶
type StupidHandler ¶
type StupidHandler func(ctx *Context)