Posts tagged Routing
The Segment-Trie Router: Matching Without Regex
Gortex routes with a segment trie, not regex: string splitting plus map lookups, O(segments) when no backtracking is needed, static > param > wildcard precedence, no allocations.
Struct-Tag Routing: reflect in Practice
How gortex builds its route table from struct tags with reflect: method names pick the verb, middleware inherits down groups, and bad config fails at startup.