You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package implements the UUID versions defined in [RFC4122bis](https://www.ietf.org/archive/id/draft-ietf-uuidrev-rfc4122bis-02.html).
8
+
This package implements the UUID versions defined in [RFC9562](https://www.ietf.org/rfc/rfc9562.html).
9
9
10
-
Versions 1 through 5 are defined in the original [RFC4122](https://www.ietf.org/rfc/rfc4122.html), while versions 6 through 8 are new additions.
10
+
Versions 1 through 5 are unchanged from the original [RFC4122](https://www.ietf.org/rfc/rfc4122.html), while versions 6 through 8 are new additions.
11
11
12
-
Versions 6 and 7 are designed as timestamp-based, sortable IDs for use e.g. in database indexes. Version 7 is recommended for new applications while version 6 is a sortable replacement for version 1.
12
+
Versions 6 and 7 are designed as timestamp-based, sortable IDs for use e.g. in database indexes. Version 7 is recommended for new applications and drops the node id for random data making it unguessable and more collision resistant, while version 6 is a sortable replacement for version 1.
13
13
14
14
Version 8 is highly customizable, allowing for 122 custom bits with only version and variant being predefined.
15
15
16
-
Create a new UUID: `uuid.NewVx() (UUID, error)`
16
+
Create a new UUID: `uuid.NewVx() UUID`
17
17
18
18
Convert an UUID to a string: `UUID.String() string`
19
19
@@ -25,4 +25,4 @@ Check if UUID contains only zeros: `UUID.IsNil() bool`
25
25
26
26
Check if UUID contains only ones: `UUID.IsMax() bool`
27
27
28
-
Support for `encoding.Text(Un)Marshaler`, `encoding.Binary(Un)Marshaler`, `database/sql.Scanner` and `database/sql/driver.Valuer` is built in, so the IDs can be used with most data exchange formats and databases.
28
+
Support for `fmt.Stringer`, `encoding.Text(Un)Marshaler`, `encoding.Binary(Un)Marshaler`, `database/sql.Scanner` and `database/sql/driver.Valuer` is built in, so the IDs can be used with most data exchange formats and databases and print in the canonical format by default.
0 commit comments