Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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



No, it does not. The length of the pattern isn't important anymore, only whether it overlaps with other patterns.


That 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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: