Documentation
¶
Index ¶
- type Callback
- type Params
- type Router
- func (router *Router) DELETE(str string, cb Callback)
- func (router *Router) EnableHTMLParser(staticDir string)
- func (router *Router) GET(str string, cb Callback)
- func (router *Router) HEAD(str string, cb Callback)
- func (router *Router) Handle(str string, hfunc http.Handler)
- func (router *Router) PATCH(str string, cb Callback)
- func (router *Router) POST(str string, cb Callback)
- func (router *Router) PUT(str string, cb Callback)
- func (router *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (router *Router) SetDefault(cb Callback)
- func (router *Router) SetDefaultHandle(hfunc http.Handler)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) EnableHTMLParser ¶
enables html parser for preprocessing custom include tags
func (*Router) SetDefault ¶
default route callback (run after all other routes) note: 404 *must* be handled in here if used!
func (*Router) SetDefaultHandle ¶
SetDefault wrapper for standard http.Handler funcs
Click to show internal directories.
Click to hide internal directories.