aboutsummaryrefslogtreecommitdiff
path: root/lib/uuidv7/uuid_test.go
AgeCommit message (Collapse)Author
2 dayslib/uuid: return nil if ID is zeroShulhan
Per RFC 9562 Section 5.9, A Nil UUID value can be useful to communicate the absence of any other UUID value in situations that otherwise require or use a 128-bit UUID. A Nil UUID can express the concept "no such value here". Thus, it is reserved for such use as needed for implementation-specific situations. In case of SQL, the Value method should return nil if ID is zero.
9 dayslib/uuidv7: add tests for Equal and ValueShulhan
9 dayslib/uuidv7: remove the v7 suffix from typeShulhan
Adding suffix version to the type seems not right (and also mouthful to read) since the package already defines the version of UUID.