Load a shipped category on the first call reaching it, from an index generated from data/

This commit is contained in:
2026-10-03 17:12:44 +02:00
committed by Lillem4n
parent 75597664e0
commit 5667cd5dc3
17 changed files with 422 additions and 142 deletions
+4 -1
View File
@@ -16,7 +16,10 @@ type node interface{ isNode() }
// folder is a namespace of named children, built from a directory of JSON files
// and subdirectories. It has no value of its own: descend into a named child by
// dot path; rendering one is an error (see Fake).
type folder struct{ children map[string]node }
type folder struct {
children map[string]node
unloaded map[string]shippedCategory // the shipped categories here a call has not reached yet
}
func (*folder) isNode() {}