Documentation
¶
Overview ¶
Package router for http request routing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
Verbose bool
Prefix string
Routes []route
// contains filtered or unexported fields
}
Router ah http request router
func (*Router) Add ¶
func (r *Router) Add(method string, path string, handler func(http.ResponseWriter, *http.Request, map[string]string) error)
Add add a new route into the router routing table
Click to show internal directories.
Click to hide internal directories.