(path string)
| 20 | const maxParamCount uint8 = ^uint8(0) |
| 21 | |
| 22 | func countParams(path string) uint8 { |
| 23 | var n uint |
| 24 | for i := range []byte(path) { |
| 25 | switch path[i] { |
| 26 | case ':', '*': |
| 27 | n++ |
| 28 | } |
| 29 | } |
| 30 | return uint8(n) |
| 31 | } |
| 32 | |
| 33 | type nodeType uint8 |
| 34 |