1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-21 19:32:58 +00:00

🚀 improve routing behavior

This commit is contained in:
ReneWerner87 2020-08-06 02:43:58 +02:00
parent 8c4f346a33
commit 582b10a6d4

View File

@ -156,6 +156,7 @@ func findNextCharsetPosition(search string, charset []byte) int {
return nextPosition
}
// TODO: check performance
// getMatch parses the passed url and tries to match it against the route segments and determine the parameter positions
func (p *routeParser) getMatch(s string, partialCheck bool) ([][2]int, bool) {
lenKeys := len(p.params)