Hold a bound level against every route that renders it, and let a matching string be

This commit is contained in:
M
2026-08-30 21:25:49 +02:00
committed by lilleman-tw
parent c755d085a9
commit 447cfae50a
6 changed files with 92 additions and 41 deletions
+1 -2
View File
@@ -240,8 +240,7 @@ func checkNoOverlap(ops []op, bound map[string]string, format string) error {
return nil
}
// reader is one way a format reaches a bound field: the name it reads, and how to
// name that spelling in an error.
// reader is one way a format reaches a bound field, and how to name that spelling.
type reader struct{ name, label string }
// checkSegments rejects an unfinished path: "{a.}", "{.b}" and "{a..b}" each have