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

Method MatcherFunc

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

MatcherFunc adds a custom function to be used as request matcher.

(f MatcherFunc)

Source from the content-addressed store, hash-verified

317
318// MatcherFunc adds a custom function to be used as request matcher.
319func (r *Route) MatcherFunc(f MatcherFunc) *Route {
320 return r.addMatcher(f)
321}
322
323// Methods --------------------------------------------------------------------
324

Callers

nothing calls this directly

Calls 1

addMatcherMethod · 0.95

Tested by

no test coverage detected