Show a struct filling an address from one pick, a record template compiled once, a counter per table and how a custom CLI's embed maps to paths, and record the custom-CLI builder's ruling on the help
This commit is contained in:
+2
-2
@@ -92,8 +92,8 @@ func (loadError) Is(target error) bool { return target == ErrLoad }
|
||||
// winning a name clash; it fails where no [WithDataFS] or [WithDataPath] names the data
|
||||
// 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; a generator with no data at all renders
|
||||
// templates that read none. A source whose .fejkdata.json carries an index, as each
|
||||
// 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].
|
||||
func New(opts ...Option) (*Generator, error) {
|
||||
|
||||
Reference in New Issue
Block a user