MatcherFunc registers a new route with a custom matcher function. See Route.MatcherFunc().
(f MatcherFunc)
| 317 | // MatcherFunc registers a new route with a custom matcher function. |
| 318 | // See Route.MatcherFunc(). |
| 319 | func (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(). |