示例
Read URL parameters and nest routers with go-chi
sha256:8a05cf61b89bea84e9ae1dc410f9f500c1009e51fec9897152bcdb81c072752f
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Read URL parameters and nest routers with go-chi HOW
- 包
- github.com/go-chi/chi/v5 5.3.1
- 环境
- go 1.26
- 创建时间
- 2026-08-13T18:44:13Z
契约
- 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
文件
- csx.json
- go.mod
- go.sum
- src/router.go
- test/main.go
原始种子者
验证回执
- 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