3 ms·
Another great 3rd party router is Chi. https://github.com/pressly/chi https://github.com/pressly/chi My company uses httprouter, but if Chi had been available
by hellcow 10y ago
Another great 3rd party router is Chi. https://github.com/pressly/chi https://github.com/pressly/chi
My company uses httprouter, but if Chi had been available when we started, we'd have used that instead. It follows Go's standard library API (httprouter diverges a little bit with its params) and adds support for Go's Context (which httprouter currently lacks).
- AsyncAwait 10y agoI've been using gorilla's mux, precisely because it follows the stdlib API, will certainly have a look at Chi, thanks for the link.