Documentation ¶
Index ¶
Constants ¶
View Source
const (
// UUIDSize is the size in bytes of a UUID.
UUIDSize = 16
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UUID ¶
type UUID []byte
UUID is a 16 byte UUID.
func NewUUID4 ¶
func NewUUID4() UUID
NewUUID4 returns a new UUID (Version 4) using 16 random bytes or panics.
The uniqueness depends on the strength of crypto/rand. Version 4 UUIDs have 122 random bits.
Click to show internal directories.
Click to hide internal directories.