MCPcopy
hub / github.com/go-chi/chi / NewRouter

Function NewRouter

chi.go:60–62  ·  view source on GitHub ↗

NewRouter returns a new Mux object that implements the Router interface.

()

Source from the content-addressed store, hash-verified

58
59// NewRouter returns a new Mux object that implements the Router interface.
60func NewRouter() *Mux {
61 return NewMux()
62}
63
64// Router consisting of the core routing methods used by chi's Mux,
65// using only the standard net/http.

Callers 15

RouteMethod · 0.85
TestMuxBasicFunction · 0.85
TestMuxMountsFunction · 0.85
TestMuxPlainFunction · 0.85
TestMuxEmptyRoutesFunction · 0.85
TestMuxTrailingSlashFunction · 0.85
TestMuxNestedNotFoundFunction · 0.85
TestMethodNotAllowedFunction · 0.85
TestMuxWithFunction · 0.85

Calls 1

NewMuxFunction · 0.85

Tested by 15

TestMuxBasicFunction · 0.68
TestMuxMountsFunction · 0.68
TestMuxPlainFunction · 0.68
TestMuxEmptyRoutesFunction · 0.68
TestMuxTrailingSlashFunction · 0.68
TestMuxNestedNotFoundFunction · 0.68
TestMethodNotAllowedFunction · 0.68
TestMuxWithFunction · 0.68
TestRouterFromMuxWithFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…