Answer stability round 1: the tests precede the code they pin, ErrNoColumns's doc speaks of itself alone, the edited docs are reflowed, and the binding hint and a JSON-shaped template's parse position are filed as items 228 and 229

This commit is contained in:
2026-10-11 23:27:59 +02:00
committed by Lillem4n
parent 18ba32e8cf
commit 90d1948a2b
4 changed files with 17 additions and 9 deletions
+4 -3
View File
@@ -93,9 +93,10 @@ func (loadError) Is(target error) bool { return target == ErrLoad }
// to load. Each JSON file becomes a category named after the file (address.json ->
// "address") and each subdirectory a namespace segment. It errors on a missing
// directory, invalid JSON or invalid data. WithDataFS() alone loads no data, and the
// generator renders templates that read none. A source whose .fejkdata.json carries an index, as each
// shipped module's does, loads each category on the first call reaching it. Data failing
// to load, in New or on that first call, gives an error matching [ErrLoad].
// generator renders templates that read none. A source whose .fejkdata.json carries an
// index, as each shipped module's does, loads each category on the first call reaching
// it. Data failing to load, in New or on that first call, gives an error matching
// [ErrLoad].
func New(opts ...Option) (*Generator, error) {
var c config
for _, opt := range opts {