Documentation
¶
Index ¶
- type Context
- func (ctx *Context) GetIntParam(key string) (int, error)
- func (ctx *Context) GetStringParam(key string) (string, error)
- func (ctx *Context) ReadBody(data interface{}) error
- func (ctx *Context) SetParam(key string, value string)
- func (ctx *Context) WriteError(code int, err string)
- func (ctx *Context) WriteJSON(code int, data interface{}) error
- func (ctx *Context) WriteString(code int, body string)
- type Error
- type Handler
- type Route
- type Router
- func (r *Router) DELETE(pattern string, handler Handler)
- func (r *Router) GET(pattern string, handler Handler)
- func (r *Router) PATCH(pattern string, handler Handler)
- func (r *Router) POST(pattern string, handler Handler)
- func (r *Router) PUT(pattern string, handler Handler)
- func (r *Router) ServeHTTP(writer http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.