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

Method MatcherFunc

mux.go:319–321  ·  view source on GitHub ↗

MatcherFunc registers a new route with a custom matcher function. See Route.MatcherFunc().

(f MatcherFunc)

Source from the content-addressed store, hash-verified

317// MatcherFunc registers a new route with a custom matcher function.
318// See Route.MatcherFunc().
319func (r *Router) MatcherFunc(f MatcherFunc) *Route {
320 return r.NewRoute().MatcherFunc(f)
321}
322
323// Methods registers a new route with a matcher for HTTP methods.
324// See Route.Methods().

Callers 1

TestMatcherFuncFunction · 0.45

Calls 1

NewRouteMethod · 0.95

Tested by 1

TestMatcherFuncFunction · 0.36