mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
🚀 improve routing behavior
This commit is contained in:
parent
8c4f346a33
commit
582b10a6d4
1
path.go
1
path.go
@ -156,6 +156,7 @@ func findNextCharsetPosition(search string, charset []byte) int {
|
|||||||
return nextPosition
|
return nextPosition
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: check performance
|
||||||
// getMatch parses the passed url and tries to match it against the route segments and determine the parameter positions
|
// 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) {
|
func (p *routeParser) getMatch(s string, partialCheck bool) ([][2]int, bool) {
|
||||||
lenKeys := len(p.params)
|
lenKeys := len(p.params)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user