()
| 230 | } |
| 231 | |
| 232 | func (parser *routeParser) reset() { |
| 233 | parser.segs = parser.segs[:0] |
| 234 | parser.params = parser.params[:0] |
| 235 | parser.wildCardCount = 0 |
| 236 | parser.plusCount = 0 |
| 237 | } |
| 238 | |
| 239 | // parseRoute analyzes the route and divides it into segments for constant areas and parameters, |
| 240 | // this information is needed later when assigning the requests to the declared routes |