MCPcopy
hub / github.com/gorilla/mux / NewRouter

Function NewRouter

mux.go:25–27  ·  mux.go::NewRouter

NewRouter returns a new router instance.

()

Source from the content-addressed store, hash-verified

23
24// NewRouter returns a new router instance.
25func NewRouter() *Router {
26 return &Router{namedRoutes: make(map[string]*Route)}
27}
28
29// Router registers routes to be matched and dispatches a handler.
30//

Calls

no outgoing calls

Tested by 15

ExampleRoute_GetVarNamesFunction · 0.74
TestMiddlewareAddFunction · 0.68
TestMiddlewareFunction · 0.68
TestMiddlewareSubrouterFunction · 0.68
TestMiddlewareExecutionFunction · 0.68
TestMiddlewareNotFoundFunction · 0.68