uuidv7

package
v0.19.11 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package uuidv7 generates the monotonic UUID and short entry identifiers used by upstream harness session storage, and crypto.randomUUID()'s UUIDv4.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryCandidate

func EntryCandidate() string

EntryCandidate returns the eight-hex-character identifier used for session tree entries before collision checking. Callers check collisions, so it needs no crypto/rand, which on js/wasm calls into JavaScript every time.

func Generate

func Generate(now time.Time) (string, error)

Generate returns a monotonic UUIDv7 for now.

func NewV4 added in v0.19.1

func NewV4(random io.Reader) (string, error)

NewV4 returns a lowercase-hex UUIDv4 read from random, as crypto.randomUUID() writes one.

Types

This section is empty.

Jump to

Keyboard shortcuts

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