package
0.0.0-20250221084221-cda146333981
Repository: https://github.com/mendersoftware/go-lib-micro.git
Documentation: pkg.go.dev

# Functions

FromString tries to parse a hex-encoded mongo ObjectID/UUID string, and returns an error if the string is not a valid UUID.
NewBSONID initialize a new bson-type ObjectID (used by default by mongo).
NewUUIDv4 creates a new ObjectID initialized with a UUID v4 (random).
NewUUIDv5 returns a new version 5 uuid in the objectID namespace.

# Constants

Size of a UUID in bytes.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

ObjectID implements a bson compatible fusion of bson ObjectID, UUID and string types.

# Type aliases

No description provided by the author