# Functions
FastMakeV4 generates a UUID using a fast but not cryptographically secure source of randomness.
FromBytes returns a UUID generated from the raw byte slice input.
FromBytesOrNil returns a UUID generated from the raw byte slice input.
FromString returns a UUID parsed from the input string.
FromStringOrNil returns a UUID parsed from the input string.
FromUint128 delegates to FromBytes and wraps the result in a UUID.
MakeV4 calls Must(NewV4).
Must is a helper that wraps a call to a function returning (UUID, error) and panics if the error is non-nil.
NewGen returns a new instance of Gen with some default values set.
NewGenWithHWAF builds a new UUID generator with the HWAddrFunc provided.
NewGenWithReader returns a new instance of gen which uses r as its source of randomness.
NewPopulatedUUID returns a populated UUID.
NewV1 returns a UUID based on the current timestamp and MAC address.
NewV3 returns a UUID based on the MD5 hash of the namespace UUID and name.
NewV4 returns a randomly generated UUID.
NewV5 returns a UUID based on SHA-1 hash of the namespace UUID and name.
TimestampFromV1 returns the Timestamp embedded within a V1 UUID.
# Constants
Size of a UUID in bytes.
Version 1 (date-time and MAC address).
Version 3 (namespace name-based).
Version 4 (random).
Version 5 (namespace name-based).
UUID layout variants.
UUID layout variants.
UUID layout variants.
UUID layout variants.
# Variables
DefaultGenerator is the default UUID Generator used by this package.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Predefined namespace UUIDs.
Nil is the nil UUID, as specified in RFC-4122, that has all 128 bits set to zero.
# Interfaces
Generator provides an interface for generating UUIDs.
# Type aliases
HWAddrFunc is the function type used to provide hardware (MAC) addresses.
ShortStringer implements fmt.Stringer to output Short() on String().
Timestamp is the count of 100-nanosecond intervals since 00:00:00.00, 15 October 1582 within a V1 UUID.
UUID is an array type to represent the value of a UUID, as defined in RFC-4122.