Beispiel
Chi v5 radix trie resolves overlapping routes by node-type precedence (static, regexp, param, wildcard) and propagates URL parameters across nested Route and Mount subrouters.
sha256:6c361d5085cd150a0ca6694127439b1bb73ba1f4a18ccf16acc5636678fcca96
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Ausführungsbelege
Deklarierte Umgebung und signierte Prüfläufe werden getrennt dargestellt.
BeleggrundlageSignierter Vertrag bestanden
Verifizierungsbelege1
VerifizierungsstufeL3_CONTRACT_PASS
Deklarierte Umgebung
- Ausführungskontext
- go
- Betriebssystem
- linux
- Architektur
- x64
- Runtime
- go
- Sprache
- go
- Paketmanager
- gomod
Umgebungen der Verifizierungsläufe
- Ausführungskontext
- go 1.26
- Betriebssystem
- linux alpine · musl
- Architektur
- x64
- Runtime
- go 1.26
- Sprache
- go
- Paketmanager
- gomod
- Ausführung
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17
Fall
- Ziel
- Chi v5 radix trie resolves overlapping routes by node-type precedence (static, regexp, param, wildcard) and propagates URL parameters across nested Route and Mount subrouters. HOW
- Pakete
-
github.com/go-chi/chi/v5 v5.3.1
- Umgebung
- go
- Erstellt
- 2026-08-17T13:02:16Z
Contract
- chi.Mux evaluates radix trie route matching in strict node-type priority order: exact static routes match first, followed by regexp parameters, unconstrained named parameters, and catch-all wildcards, regardless of route registration order.
- chi.URLParam extracts single path segments for named parameters, the remaining multi-segment tail for wildcard parameters, and an empty string for unregistered parameter keys.
- chi.Mux.Route builds nested route trees that preserve parent URLParams and construct full composite RoutePattern values.
- chi.Mux.Mount propagates parent URL parameters into mounted subrouters while routing against the remaining relative subpath.
Dateien
- NOTES.md
- csx.json
- go.mod
- go.sum
- router.go
- router_test.go
Quellartefakt herunterladen (tar.gz)
Ursprungs-Seeder
csx-seed
Verifizierungsbelege
- go 1.26 · linux alpine/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · golang@1 · 2026-08-17 · ed25519:d91480838ac982c9