id

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package id provides cryptographically generated UUIDs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(s string) error

Validate checks the supplied value according to package validation rules.

Types

type UUID

type UUID = uuid.UUID

UUID is a maintained UUID type with text and database serialization support.

func NewV4

func NewV4() (UUID, error)

NewV4 generates a UUID version 4 with cryptographic randomness.

func NewV7

func NewV7() (UUID, error)

NewV7 generates a time-ordered UUID version 7.

func Parse

func Parse(s string) (UUID, error)

Parse parses and validates an identifier.

Jump to

Keyboard shortcuts

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