Host ----------------------------------------------------------------------- Host adds a matcher for the URL host. It accepts a template with zero or more URL variables enclosed by {}. Variables can define an optional regexp pattern to be matched: - {name} matches anything until the next dot. - {n
(tpl string)
| 301 | // Variable names must be unique in a given route. They can be retrieved |
| 302 | // calling mux.Vars(request). |
| 303 | func (r *Route) Host(tpl string) *Route { |
| 304 | r.err = r.addRegexpMatcher(tpl, regexpTypeHost) |
| 305 | return r |
| 306 | } |
| 307 | |
| 308 | // MatcherFunc ---------------------------------------------------------------- |
| 309 |
nothing calls this directly
no test coverage detected