lightweight, idiomatic and composable router for building Go HTTP services
github.com/go-chi/chi/v5
introduces the adoption of Go's SIV to adhere to the current state-of-the-tools in Go.github.com/go-chi/chi/v5
. I hope someday the developer experience and ergonomics I've been seeking
will still come to fruition in some form, see https://github.com/golang/go/issues/44550
middleware.CleanPath
: new middleware that clean's request path of double slasheschi.ServerBaseContext
in favour of stdlib http.Server#BaseContext
go get -u github.com/go-chi/[email protected]
, which will get you on the go.mod version line (as Go's mod cache may still remember v4.x).go get -u github.com/go-chi/chi
or go get -u github.com/go-chi/chi@latest
to install chi, which will install v1.x+ built with go.mod support.