Skip to content

Conversation

@Tyrell04
Copy link

Summary

  • Adds NewUUIDv7() function for generating time-ordered UUIDs
  • UUIDv7 is recommended for new applications as it's sortable by creation time
  • Provides better database indexing performance compared to random UUIDv4

Changes

  • Added NewUUIDv7() function in uuid.go
  • Added comprehensive test coverage in uuid_test.go:
    • 2 new test cases in TestUUID
    • 2 new test cases in TestUUIDPtr
  • Updated README.md with usage example and benefits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant