package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Feb 10, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func MatchPath(requestPath, routePath string) bool
MatchPath implements the MVP routing rule:
- exact match OR
- prefix match on a segment boundary ("/path" matches "/path" and "/path/...")
Query strings are not considered (caller should pass URL.Path only).
type MatchResult struct {
Route Route
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.