-
Notifications
You must be signed in to change notification settings - Fork 16
Add UUID alias for UUIDv4 #178
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -48,6 +48,12 @@ func UUIDv4() string { | |||||
| return token.String() | ||||||
| } | ||||||
|
|
||||||
| // UUID generates an universally unique identifier (UUID). | ||||||
|
||||||
| // UUID generates an universally unique identifier (UUID). | |
| // UUID generates a universally unique identifier (UUID). |
Copilot
AI
Dec 23, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new UUID function lacks test coverage. Similar functions in common.go have corresponding tests in common_test.go. For example, UUIDv4 has Test_UUIDv4 and Test_UUIDv4_Concurrency. Consider adding at least a basic test for UUID to ensure it returns a valid UUID string, similar to how UUIDv4 is tested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a minor grammatical error here. The word "universally" starts with a consonant sound, so it should be preceded by "a" instead of "an".