Skip to content

Commit

Permalink
add max uuid (#129)
Browse files Browse the repository at this point in the history
* add max uuid

---------

Co-authored-by: Cameron Ackerman <cameron_ackerman@selinc.com>
  • Loading branch information
james-lawrence and cameracker committed Apr 8, 2024
1 parent 8ac8ea9 commit 7930207
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions uuid.go
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{
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

0 comments on commit 7930207

Please sign in to comment.