Rename the exported type to Generator and retire the faker wording #2

Merged
lilleman merged 3 commits from generator-rename into main 2026-09-01 21:46:31 +02:00
Owner

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.

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.
lilleman added 1 commit 2026-09-01 21:34:36 +02:00
Rename the exported type to Generator and retire the faker wording
Tests / vet + fmt + tests (pull_request) Successful in 25s
04b7b6a432
lilleman added 1 commit 2026-09-01 21:41:37 +02:00
Rename the builtin kind from generator to sample
Tests / vet + fmt + tests (pull_request) Successful in 32s
5d33f4c0f0
lilleman added 1 commit 2026-09-01 21:45:48 +02:00
Drop the stale kind count from the builtins registry comment
Tests / vet + fmt + tests (pull_request) Successful in 25s
Tests / vet + fmt + tests (push) Successful in 6s
5576a9e05e
lilleman merged commit 5576a9e05e into main 2026-09-01 21:46:31 +02:00
lilleman deleted branch generator-rename 2026-09-01 21:46:31 +02:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: larvit/fejkdata#2