Answer product-owner round 1: the parent error and the README name the way to link under another source's table, a missing indexed file names the manifest, the README warns a copied data/ carries its index, and the docs say what a load failure and a replacement do

This commit is contained in:
2026-10-10 11:14:19 +02:00
committed by Lillem4n
parent 15477e989f
commit 13e3de39fe
8 changed files with 64 additions and 46 deletions
+2 -2
View File
@@ -84,8 +84,8 @@ func (loadError) Is(target error) bool { return target == ErrLoad }
// namespace segment. It errors on a missing directory, invalid JSON or invalid data; a
// generator with no data at all renders templates that read none. A source whose
// .fejkdata.json carries an index, as the shipped set's does, loads each category on the
// first call reaching it. Data failing to load, here or there, gives an error matching
// [ErrLoad].
// 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) {
c := config{shipped: true}
for _, opt := range opts {