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:
- Routing methods
r.Handle("GET /users/{userID}", handler)and similarly inr.HandlerFuncwith 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) - Access url path parameters via
request.PathValue("xyz")andrequest.PathValue("*")on*http.Requestwhen using the chi router in Go 1.22+. Of course you may also usechi.URLParam(r, "xyz")andchi.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) - For full list of changes, see https://github.com/go-chi/chi/compare/v5.0.11...v5.0.12