Help us shape the future of Go! Take the 2026 Go Developer Survey

ids

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ids mints and validates the UUIDv7 identifiers used for sessions and records.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidV7

func IsValidV7(s string) bool

IsValidV7 reports whether s is the exact canonical form produced by NewV7, catching hand-edited or corrupted ids at load time.

func NewV7

func NewV7() string

NewV7 returns a freshly minted UUIDv7 in canonical 36-character lowercase form. It panics on a crypto/rand failure rather than returning an unusable id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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