Registry / web-framework / go-chi-chi-v4

go-chi-chi-v4

JSON →
library4.1.2gogounverified

Package chi is a small, idiomatic and composable router for building HTTP services.

go get github.com/go-chi/chi/v4
INSTALL
IMPORT
SIG · GO-CHI-CHI-V4
G
go-chi-chi-v4
web-frameworkgov4.1.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

chi
github.com/go-chi/chi/v4

Create a simple HTTP server with Chi router.

package main import ( "net/http" "github.com/go-chi/chi/v4" ) func main() { r := chi.NewRouter() r.Get("/", func(w http.ResponseWriter, r *http.Request) { w.Write([]byte("Hello World")) }) http.ListenAndServe(":3000", r) }
Debug
Known issues
breakingChi v4 introduced breaking changes from v3, including removal of chi.URLParam and changes to middleware signatures.
fix
Update imports from github.com/go-chi/chi to github.com/go-chi/chi/v4 and adjust middleware usage accordingly.
affects: >=4.0.0
Upgrade
Version history
4.1.2latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
go-chi-chi-v4 — go get go-chi-chi-v4 · libregistry