This is an RFC 4122 UUID package for Go that generates, parses, and validates universally unique identifiers. It provides a library for creating UUIDs that conform to standard formatting rules, along with utilities for inspecting UUID properties such as variant, version, and nil status.
The package supports DCE 1.1 Security Extension UUID generation and parsing, and includes byte-level UUID construction by directly manipulating 16-byte arrays with version and variant bits. It validates UUID strings against RFC 4122 formatting rules, including hyphens and hexadecimal characters, and can detect the nil UUID state where all 16 bytes are zero.
UUIDs can be generated, parsed from strings into 16-byte arrays, and inspected for their variant, version, and nil status. The package also provides string format validation and RFC 4122 compliant parsing for programmatic use.