Documentation
¶
Index ¶
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
}
Router is a Handler which can be used to dispatch requests to different handler functions via configurable routes
func New ¶
func New() *Router
New returns a new initialized Router. Path auto-correction, including trailing slashes, is enabled by default.
func (*Router) Lookup ¶
Lookup allows the manual lookup of a path combo. This is e.g. useful to build a framework around this router. If the path was found, it returns the handle function and the path parameter values.
Click to show internal directories.
Click to hide internal directories.