Skip to content

Commit

Permalink
add max uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
james-lawrence authored Nov 13, 2023
1 parent 22c52c2 commit 187737f
Showing 1 changed file with 21 additions and 0 deletions.
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 RFC-4122, that has all 128 bits
// set to one.
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 187737f

Please sign in to comment.