Hacker News new | past | comments | ask | show | jobs | submit login

> Therefore, the new ServeMux documentation meticulously describes the precedence rules for patterns

This is so backwards it's not even funny. It is supposed to be exactly the other way - conrete paths MUST TAKE PRECEDENCE over patterns.




In the example there are no concrete path, both have variables. Is there an example in the documentation that allows paths with variables precedence over concrete paths?


it is a quite form the article itself.

they say that get /foo/{id} takes precedences over path get /foo/23 or get /foo/bar


> conrete paths MUST TAKE PRECEDENCE over patterns.

And indeed they do.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: