Documentation ¶ Index ¶ func Equal(a, b UUID) bool type UUID func New() (UUID, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Equal ¶ func Equal(a, b UUID) bool Equal returns true if two UUIDs are equal. Types ¶ type UUID ¶ type UUID [16]byte UUID represents a UUID. func New ¶ func New() (UUID, error) New returns a random UUIDv4. It uses a "math/rand" pseudo-random number generator seeded with a cryptographically-secure random number at package initialization. New should not be used to generate cryptographically-secure random UUIDs. Source Files ¶ View all Source files uuid.go Click to show internal directories. Click to hide internal directories.