page1
Use httprouter
Use gorilla/mux
No
Yes
Do you need support for
host-based routing?
Use http.ServeMux
Yes
No
Do you need support for
variables in URL paths?
Use gorilla/mux
No
Yes
Do you need support for
custom routing rules
or route reversing?
Use chi
No
Yes
Do you need support for
conflicting routes or regexp
route patterns?
Use httprouter
No, not really
Sure is!
Is automated handling of
OPTIONS requests important to
you? Or the Allow header on
405 responses?
Use chi
No
Yes
Are you building an
application which uses lots
of middleware?