package uuid
import "go.mongodb.org/mongo-driver/x/mongo/driver/uuid"
Index ¶
Functions ¶
func Equal ¶
Equal returns true if two UUIDs are equal.
Types ¶
type UUID ¶
type UUID [16]byte
UUID represents a UUID.
func New ¶
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 ¶
uuid.go
- Version
- v1.9.2
- Published
- Oct 4, 2022
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.