4 ms·
I would say that unless specified differently this bit of the documentation[1] still applies (second paragraph): > Longer patterns take precedence over shorter
by mariusor 3y ago
I would say that unless specified differently this bit of the documentation[1] still applies (second paragraph):
> Longer patterns take precedence over shorter ones,
https://pkg.go.dev/net/http#ServeMux https://pkg.go.dev/net/http#ServeMux
- jbamsterdam 3y agoNo, it does not. The length of the pattern isn't important anymore, only whether it overlaps with other patterns.
- mariusor 3y agoThat would be a breaking API change in my opinion. I bet you the length criterion will still apply for path patterns that don't include placeholders, even if not specifically mentioned in the proposal. [edit] Heh, I guess you'd know better. :D The comparison between the hn username and github username resolved favourably in the end. :P
- deleted 3y ago[deleted]