Rename the exported type to Generator and retire the faker wording #2
Reference in New Issue
Block a user
Delete Branch "generator-rename"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fejkdata stuttered as fejkdata.Fejkdata. The exported type is now Generator, and the surrounding vocabulary follows: doc comments and README prose said "faker" in 16 places, which would have kept riding the name the repo rename moved away from.
Public surface: type Generator, New, (*Generator) List, (*Generator) Fake. Internal helpers newFejkdata/newFejkdataN became newGenerator/newGeneratorN and benchFaker became benchGenerator. The Fake method and "fake data" prose are unchanged — those describe what is produced, they do not claim the name.
Note: "generator" was already this codebase's term for a kind of builtin function (derivation vs generator, in the README Kind column and the builtins registry). Where the two senses met in one comment, the object sense was reworded rather than the taxonomy.