Split the Library's failure list, spell up front one way, and name what the item's split decides
This commit is contained in:
@@ -291,10 +291,12 @@ ok, err := fejkdata.IsTemplate(arg) // an inline template by its shape, el
|
|||||||
| `WithDataFS(fsys)` | layer an `fs.FS`, such as your own `embed.FS` |
|
| `WithDataFS(fsys)` | layer an `fs.FS`, such as your own `embed.FS` |
|
||||||
| `WithoutShippedData()` | load only what you give |
|
| `WithoutShippedData()` | load only what you give |
|
||||||
|
|
||||||
`New` refuses a mistake in the data and `NewTemplate` one in the template, so on a
|
`New` refuses a mistake in the data, and `NewTemplate` one in the template. On a loaded
|
||||||
loaded generator `Fake` fails only for a path that names nothing or could name two
|
generator, each with the same error every call:
|
||||||
things, `FakeStruct` only for a non-struct argument or a type its tags do not describe,
|
|
||||||
with the same error every call, and `Template.Fake` cannot fail at all.
|
- `Fake` fails only for a path that names nothing or could name two things.
|
||||||
|
- `FakeStruct` fails only for a non-struct argument or a type its tags do not describe.
|
||||||
|
- `Template.Fake` cannot fail.
|
||||||
|
|
||||||
A `*Record` carries its columns via `Columns()` — each a `Column` of `Name`,
|
A `*Record` carries its columns via `Columns()` — each a `Column` of `Name`,
|
||||||
`DataType`, rendered `Value` and `Null` — and serializes them with `JSON()`
|
`DataType`, rendered `Value` and `Null` — and serializes them with `JSON()`
|
||||||
|
|||||||
@@ -210,7 +210,9 @@ by a `data-import/` script, as README goal 12 asks.
|
|||||||
|
|
||||||
- Report every mistake a load finds in one error, as the decision "A load reports every
|
- Report every mistake a load finds in one error, as the decision "A load reports every
|
||||||
mistake at once" states: `New` and `NewTemplate` stop at the first, so data holding
|
mistake at once" states: `New` and `NewTemplate` stop at the first, so data holding
|
||||||
two mistakes takes two runs to fix. Split it into sub-items before starting.
|
two mistakes takes two runs to fix. Split it into sub-items before starting, one of
|
||||||
|
them the shape a Go caller iterates and the CLI prints, and reword the README's
|
||||||
|
"`New` refuses a mistake in the data" to every mistake.
|
||||||
- Rename `newRand` to `newGeneratorState` and `Generator.rand` to `state`: both name
|
- Rename `newRand` to `newGeneratorState` and `Generator.rand` to `state`: both name
|
||||||
half of a `generatorState`, hiding its `{seq()}` counters, and `New`'s local `rng`
|
half of a `generatorState`, hiding its `{seq()}` counters, and `New`'s local `rng`
|
||||||
shadows the `rng` interface.
|
shadows the `rng` interface.
|
||||||
|
|||||||
Reference in New Issue
Block a user