lightweight, idiomatic and composable router for building Go HTTP services
Hi everyone, thank you to all contributors + reviewers.
We present chi v5.0.12 which includes support for the new Go 1.22 mux routing features :)
Specifically, this release adds support for:
r.Handle("GET /users/{userID}", handler)
and similarly in r.HandlerFunc
with a very simple addition to chi, thank you @Spartan09 and @angelofallars for their work on the PRs to add support (https://github.com/go-chi/chi/pull/897, https://github.com/go-chi/chi/pull/901)request.PathValue("xyz")
and request.PathValue("*")
on *http.Request
when using the chi router in Go 1.22+. Of course you may also use chi.URLParam(r, "xyz")
and chi.URLParam(r, "*")
– these are all equivalent now in Go 1.22+. Thank you @angelofallars for the PR (https://github.com/go-chi/chi/pull/901)Thank you again to all contributors and reviewers :)
Thank you to all contributors and reviewers :)