Documentation ¶
Index ¶
- type 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) 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
- type H
- type HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
func (*Engine) Get ¶
func (engine *Engine) Get(pattern string, handler HandlerFunc)
func (*Engine) POST ¶
func (engine *Engine) POST(pattern string, handler HandlerFunc)
type HandlerFunc ¶
type HandlerFunc func(*Context)
Click to show internal directories.
Click to hide internal directories.