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

add max uuid #129

Merged
merged 2 commits into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions uuid.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,27 @@ func TimestampFromV7(u UUID) (Timestamp, error) {
// zero.
var Nil = UUID{}

// Max is the maximum UUID, as specified in a draft of RFC-4122, that has all 128 bits
// set to one. This feature is subject to removal if it is removed from the final draft of the RFC.
var Max = UUID{
cameracker marked this conversation as resolved.
Show resolved Hide resolved
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
0xFF,
}

// Predefined namespace UUIDs.
var (
NamespaceDNS = Must(FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8"))
Expand Down