MuxMatch produces a match clause suitable for passing to a Mux
()
| 115 | |
| 116 | // MuxMatch produces a match clause suitable for passing to a Mux |
| 117 | func (f Route) MuxMatch() string { |
| 118 | // Path is guaranteed to start with / |
| 119 | return f.Host + f.Path |
| 120 | } |
| 121 | |
| 122 | // RouteCollection is a collection of routes |
| 123 | type RouteCollection map[string]Route |