Skip to content
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

feat: UUIDs slice type with Strings() convenience method #133

Merged
merged 4 commits into from
Oct 26, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: improve comments on UUIDs
  • Loading branch information
dzbee committed Oct 25, 2023
commit 997a025b6ae86f9fba8ef51429cca0c044f13040
4 changes: 2 additions & 2 deletions uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@ func DisableRandPool() {
poolPos = randPoolSize
}

// UUIDs is a slice of UUID types
// UUIDs is a slice of UUID types.
type UUIDs []UUID
bormanp marked this conversation as resolved.
Show resolved Hide resolved

// Strings returns a slice of the string form of each UUID in the received slice of UUIDs
// Strings returns a string slice containing the string form of each UUID in uuids.
func (uuids UUIDs) Strings() []string {
var uuidStrs = make([]string, len(uuids))
for i, uuid := range uuids {
Expand Down
Loading