Host registers a new route with a matcher for the URL host. See Route.Host().
(tpl string)
| 311 | // Host registers a new route with a matcher for the URL host. |
| 312 | // See Route.Host(). |
| 313 | func (r *Router) Host(tpl string) *Route { |
| 314 | return r.NewRoute().Host(tpl) |
| 315 | } |
| 316 | |
| 317 | // MatcherFunc registers a new route with a custom matcher function. |
| 318 | // See Route.MatcherFunc(). |