chi
github.com/go-chi/chi/v5
Composable routing using standard net/http handlers
Reviewed 2026-09-30 · Package source
Recorded facts
Metadata fetched: 2026-09-30T18:11:15.773Z · Freshness: current. This is a dated snapshot; check the linked sources before adopting a package.
- Version
- v5.3.2
- Minimum Go version
- 1.23
- Licenses
- MIT
- Import path
- github.com/go-chi/chi/v5
- Capabilities
- routing, middleware
- Dependencies recorded
- 0
- Metadata source 1: https://proxy.golang.org/github.com/go-chi/chi/v5/@latest
- Metadata source 2: https://proxy.golang.org/github.com/go-chi/chi/v5/@v/v5.3.2.mod
- Metadata source 3: https://api.deps.dev/v3/systems/go/packages/github.com%2Fgo-chi%2Fchi%2Fv5/versions/v5.3.2
Vulnerability evidence
Status: checked. Checked: 2026-09-30T18:11:15.774Z.
No advisories reported by this check.
Version advisories do not establish whether a vulnerability is reachable in your application.
Vulnerability sourceTradeoffs
- Request binding and validation are separate choices.
Install and import
go get github.com/go-chi/chi/[email protected]import "github.com/go-chi/chi/v5"
Authored example
Verification status: passed · Checked: 2026-09-30T18:16:13.003Z
Package version: v5.3.2 · Go toolchain: go1.27.1
Targets: linux/amd64, windows/amd64 · CGO: disabled
Compilation checks only this displayed example. It does not verify runtime behavior, all package features or vulnerability reachability.
package main
import (
"fmt"
"net/http"
"net/http/httptest"
"github.com/go-chi/chi/v5"
)
func main() {
router := chi.NewRouter()
router.Get("/hello/{name}", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintln(w, "hello", chi.URLParam(r, "name"))
})
response := httptest.NewRecorder()
router.ServeHTTP(response, httptest.NewRequest(http.MethodGet, "/hello/Go", nil))
fmt.Print(response.Body.String())
}
Compile verification covers this example only. It does not test runtime behavior or every optional feature.
Reproduce the compilation with pinned dependencies
Save the example as main.go alongside these files in a new directory. Use the recorded Go toolchain and CGO_ENABLED=0 to compile for a recorded target.
go.mod
module example.com/discovery/chi
go 1.27.1
require github.com/go-chi/chi/v5 v5.3.2
go.sum
github.com/go-chi/chi/v5 v5.3.2 h1:5YQkICvTCSZ25hoRsyJazN0scjzKGiu4VAUc7H1o1nY=
github.com/go-chi/chi/v5 v5.3.2/go.mod h1:R+tYY2hNuVUUjxoPtqUdgBqevM9s9njzkTLutVsOCto=