Skip to content

Commit 7930207

Browse files
add max uuid (#129)
* add max uuid --------- Co-authored-by: Cameron Ackerman <[email protected]>
1 parent 8ac8ea9 commit 7930207

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

uuid.go

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,27 @@ func TimestampFromV7(u UUID) (Timestamp, error) {
161161
// zero.
162162
var Nil = UUID{}
163163

164+
// Max is the maximum UUID, as specified in a draft of RFC-4122, that has all 128 bits
165+
// set to one. This feature is subject to removal if it is removed from the final draft of the RFC.
166+
var Max = UUID{
167+
0xFF,
168+
0xFF,
169+
0xFF,
170+
0xFF,
171+
0xFF,
172+
0xFF,
173+
0xFF,
174+
0xFF,
175+
0xFF,
176+
0xFF,
177+
0xFF,
178+
0xFF,
179+
0xFF,
180+
0xFF,
181+
0xFF,
182+
0xFF,
183+
}
184+
164185
// Predefined namespace UUIDs.
165186
var (
166187
NamespaceDNS = Must(FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8"))

0 commit comments

Comments
 (0)