v5.0.12
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.HandlerFunc
with a very simple addition to chi, thank you @Spartan09 and @angelofallars for their work on the PRs to add support (#897, #901) - Access url path parameters via
request.PathValue("xyz")
andrequest.PathValue("*")
on*http.Request
when 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 (#901) - For full list of changes, see v5.0.11...v5.0.12