Answer stability round 1: unexport the grammar's helpers the root never calls, and drop CheckName's note of its callers

This commit is contained in:
2026-10-05 12:26:43 +02:00
committed by Lillem4n
parent 350514b60e
commit 199cb577c5
3 changed files with 13 additions and 15 deletions
-2
View File
@@ -16,8 +16,6 @@ var reservedList = strings.Join(strings.Split(reservedInName, ""), " ")
// CheckName rejects a name the dot path, {token} and JSON grammars cannot spell, or a struct
// tag cannot read.
// Both a category or folder and a field go through it, so there is one answer to
// what a name may contain.
func CheckName(name string) error {
if name == "" {
return fmt.Errorf("%q is empty, which is not a path segment, so List never offers it", name)