uuid

package
v1.8.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 the package initialization time.

New should not be used to generate cryptographically-secure random UUIDs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL