Move List's path enumeration into list.go, position into node.go and sortedNames into sorted.go

This commit is contained in:
2026-10-07 02:08:38 +02:00
committed by Lillem4n
parent 6c8ddeb3ac
commit 63e985a53d
6 changed files with 126 additions and 118 deletions
-10
View File
@@ -20,16 +20,6 @@ const (
DataTypeBoolean DataType = datatype.Boolean
)
// position is where a JSON value sits, which decides whether it may carry a datatype or
// be null.
type position int
const (
inFormat position = iota // rendered by a format, so neither
atTop // a category or an inline template, whose fields may be columns
inColumn // a column, or a choice item standing in for one
)
// datatypeOf reads a template's "datatype" (default DataTypeString).
func datatypeOf(m map[string]any, pos position) (DataType, error) {
v, ok := m["datatype"]