Exemple
Read URL parameters and nest routers with go-chi
sha256:8a05cf61b89bea84e9ae1dc410f9f500c1009e51fec9897152bcdb81c072752f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Read URL parameters and nest routers with go-chi HOW
- Paquets
- github.com/go-chi/chi/v5 5.3.1
- Environnement
- go 1.26
- Créé
- 2026-08-13T18:44:13Z
Contrat
- mount a nested router under a path prefix
- assert URL parameters are read with chi.URLParam
- assert an unmatched route returns 404
- assert middleware runs before the handler
Fichiers
- csx.json
- go.mod
- go.sum
- src/router.go
- test/main.go
Seeder d'origine
Reçus de vérification
- go 1.26 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · go@1 · 2026-08-13 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:FAIL · load:SKIPPED · resolve:PASS · go@1 · 2026-08-13 · ed25519:7da3f610facce8bf