Answer architecture round 2: New's doc comment wraps whole, the README's stream needs no seeded, and the system-seed test reports each run's exit code and stderr

This commit is contained in:
2026-10-12 18:18:46 +02:00
committed by Lillem4n
parent 8e8fa92e77
commit cde9e354c5
3 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -96,8 +96,8 @@ func (loadError) Is(target error) bool { return target == ErrLoad }
// It errors on a missing directory, invalid JSON or invalid data. Given only
// WithDataFS() with no modules, New 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].
// 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 {