addMatcher adds a matcher to the route.
(m matcher)
| 174 | |
| 175 | // addMatcher adds a matcher to the route. |
| 176 | func (r *Route) addMatcher(m matcher) *Route { |
| 177 | if r.err == nil { |
| 178 | r.matchers = append(r.matchers, m) |
| 179 | } |
| 180 | return r |
| 181 | } |
| 182 | |
| 183 | // addRegexpMatcher adds a host or path matcher and builder to a route. |
| 184 | func (r *Route) addRegexpMatcher(tpl string, typ regexpType) error { |
no outgoing calls
no test coverage detected