uuid

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package uuid generates RFC 9562 version-4 UUIDs, matching util/crypto randomUUID. It reads 16 cryptographically random bytes, sets version/variant bits, and formats them as 8-4-4-4-12 hexadecimal groups.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustV4

func MustV4() string

MustV4 generates a UUID and panics on failure, for initialization paths requiring success.

func NewV4

func NewV4() (string, error)

NewV4 generates a random version-4 UUID string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL