-
-
Notifications
You must be signed in to change notification settings - Fork 8
feat(go): update github.com/brianvoe/gofakeit/v7 (v7.3.0 → v7.12.1) #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #109 +/- ##
==========================================
- Coverage 69.37% 69.23% -0.14%
==========================================
Files 10 10
Lines 2436 2022 -414
==========================================
- Hits 1690 1400 -290
+ Misses 632 508 -124
Partials 114 114 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3032950 to
bf648a6
Compare
bf648a6 to
e8eb933
Compare
e8eb933 to
a3874f6
Compare
a3874f6 to
c0684c4
Compare
c0684c4 to
8e0ec79
Compare
8e0ec79 to
c8c13c2
Compare
Signed-off-by: lrstanley-x[bot] <153159847+lrstanley-x[bot]@users.noreply.github.com>
c8c13c2 to
ef78d78
Compare
This PR contains the following updates:
v7.3.0->v7.12.1Release Notes
brianvoe/gofakeit (github.com/brianvoe/gofakeit/v7)
v7.12.1Compare Source
v7.12.0Compare Source
v7.11.0Compare Source
v7.10.0Compare Source
v7.9.0: ID GeneratorCompare Source
New:
ID()— Fast, Human-Readable Random Identifier(GoFakeIt v7.9.0)
gofakeit.ID()is a new high-performance identifier generator designed for speed, readability, and practically zero collision probability.Unlike UUID v4 or XID, this generator is intentionally random-first, not structure-based.
Perfect for mock APIs, test data, fixtures, seed data, and temporary identifiers.
Highlights
→
23456789abcdefghjkmnpqrstuvwxyz(no 1, l, i or 0, o to alleviate confusion)Example
Performance Benchmarks
Measured on Go 1.25
gofakeit.ID()gofakeit.UUIDv4()github.com/rs/xidgithub.com/google/uuid(v4)Takeaway:
gofakeit.ID()is ~2× faster than XID and ~10× faster than UUID v4, while being shorter and human-readable.Collision Probability (Randomness Math)
Collision probability when generating
nIDs within 1 second (birthday bound)gofakeit.ID()collision probabilityFor comparison (same n):
RNG Behavior
gofakeit.ID())NewFaker(source.NewCrypto()))New(seed))Example Usage
v7.8.2Compare Source
v7.8.1Compare Source
v7.8.0Compare Source
v7.7.3Compare Source
v7.7.2Compare Source
v7.7.1Compare Source
v7.7.0Compare Source
v7.6.0Compare Source
v7.5.1Compare Source
v7.5.0Compare Source
v7.4.0Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
PR generated using automation.