-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Is there an existing feature request for this?
- I have searched the existing feature requests
Is your feature request related to a problem? Please describe.
No problem
Describe the solution that you would like.
- Case Transformation Options
WithUpperCase() // JOHN-SMITH
WithLowerCase() // john-smith
WithTitleCase() // John-Smith (default)
WithCamelCase() // johnSmith
WithSnakeCase() // john_smith
WithKebabCase() // john-smith- Name Format Options
WithFormat(FirstNameOnly) // John
WithFormat(LastNameOnly) // Smith
WithFormat(LastNameFirst) // Smith-John
WithFormat(InitialsOnly) // J.S.
WithFormat(MiddleName) // John Michael Smith- Uniqueness Guarantees
GenerateUnique(count int, options...) // Guarantees no duplicates
WithUniqueConstraint() // Tracks generated names- Custom Name Lists
WithCustomFirstNames([]string{"Alice", "Bob"})
WithCustomLastNames([]string{"Cooper", "Davis"})- Numeric Options
WithRandomNumber(digits int) // John-Smith-1234
WithTimestamp() // John-Smith-1703260800
WithUUID() // John-Smith-uuid- Validation & Constraints
WithMaxLength(int) // Truncate or regenerate if too long
WithMinLength(int) // Ensure minimum length
WithAllowedChars(string) // Filter to specific character set- Email Generation
GenerateEmail(domain string) // john.smith@example.com
WithEmailFormat(DotSeparated) // john.smith@...
WithEmailFormat(Underscore) // john_smith@...
WithEmailFormat(NumberSuffix) // johnsmith123@...- Username Generation
GenerateUsername() // johnsmith42
WithUsernameFormat(format) // Customizable patterns- Seed Control
WithSeed(int64) // Reproducible name generationDescribe alternatives you have considered.
You can build each of them
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request