Package uuid provides tools for generating and validating various RFC 4122 compliant UUIDs
Default V4 UUID generation is benchmarked at ~500ns per generation (2.6 GHz Core i7 (I7-8850H)) and does not benefit from any buffering/pre-generation.
Base32Encoder encodes the supplied 128 bit number as a base32 string
Base64Encoder encodes the supplied 128 bit number as a base32 string
StandardEncoder encodes the supplied 128 bit number as a standard dash separated UUID
V4 returns a valid V4 UUID using the default random number generator with no uniqueness checks
V4Custom returns a valid V4 UUID with a custom random number generator and EncodeFrom16Byte
ValidFormat returns true if the supplied string is in accordance with the ABNF defined in Section 3 of RFC 4122
ValidV4 returns true if the supplied string is a valid version 4 UUID according to RFC 4122
Bytes16 is a 128-bit number represented as 16 bytes
GenerateCryptoRand creates a random 128 bit number using crypto/rand.Reader as a source
EncodeFrom16Byte takes a 16 byte/128-bit representation of a UUID and encodes it as a string
Generate16Byte is a type of function able to create unsigned 128-bit numbers represented as a sequence of 16 bytes.