package
0.200.1
Repository: https://github.com/invopop/gobl.git
Documentation: pkg.go.dev

# Functions

IdentifyParse will parse the provided string as a UUID in the UUID field, or panic.
IdentifyV1 is a helper method to generate a version 1 uuid ready to embed.
IdentifyV3 is a helper method to generate a version 3 uuid ready to embed.
IdentifyV4 is a helper method to generate a version 4 uuid ready to embed.
IdentifyV5 is a helper method to generate a version 5 uuid ready to embed.
IdentifyV6 is a helper method to generate a version 6 uuid ready to embed.
IdentifyV7 is a helper method to generate a version 7 uuid ready to embed.
MakeV1 generates a version 1 UUID.
MakeV3 generates a new UUIDv3 using the provided namespace and data.
MakeV4 generates a new completely random UUIDv4.
MakeV5 generates a new UUIDv5 using the provided namespace and data.
MustParse will panic if the UUID does not look good.
NewV1 generates a version 1 UUID.
NewV3 creates a new MD5 UUID using the provided namespace and data.
NewV4 creates a pointer a new completely random UUIDv4.
NewV5 creates a new SHA1 UUID using the provided namespace and data.
NodeID returns the hex representation of the current host bytes.
Normalize will ensure that zero value UUIDs will be empty strings instead of zeros.
Parse decodes s into a UUID or provides an error.
ParseBase64 will attempt to decode a Base64 string into a UUID.
SetRandomNodeID is used to generate a random host ID to be used in V1 UUIDs instead of the MAC address.
ShouldParse will return a UUID if the string is valid, otherwise it will provide a zero UUID.
V1 generates a version 1 UUID.
V3 generates a new UUIDv3 using the provided namespace and data.
V4 generates a new completely random UUIDv4.
V5 generates a new UUIDv5 using the provided namespace and data.
V6 generates a version 6 UUID, a drop-in replaced for V1 UUIDs that uses random data instead of node.
V7 generates a new UUIDv7, a replacement for V1 or V6 UUIDs which combines the Unix timestamp with millisecond precision and random data.
Within is a validation method that can be used to determine if the UUID is version 1, 6, or 7 and contains a timestamp that is greater than the current time minus the ttl.

# Constants

Constants for empty and zero states.
Constants for empty and zero states.

# Variables

HasTimestamp confirms the UUID is based on a timestamp version.
IsNotZero confirms the UUID is not zero.
IsV1 confirms the UUID is version 1.
IsV3 confirms the UUID is version 3.
IsV4 confirms the UUID is version 4.
IsV5 confirms the UUID is version 5.
IsV6 confirms the UUID is version 6.
IsV7 confirms the UUID is version 7.
Timeless confirms the UUID is not based on a timestamp version.
Valid confirms the UUID is valid.

# Structs

Identify defines a struct that can be used to identify a document by a UUID.

# Type aliases

UUID defines a string wrapper for dealing with UUIDs using the google uuid package for parsing and specific method support.
Version represents the version number of the UUID.