id

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package id generates ULIDs — lexicographically sortable identifiers used for stable post ids (spec 06 §3-2) and workspace ids. A ULID is a 48-bit millisecond timestamp plus 80 bits of randomness, encoded as 26 Crockford base32 characters. The alphabet matches the validator's ULID rule, so any id crofty generates also passes `crofty validate`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewULID

func NewULID() (string, error)

NewULID returns a new ULID string, or an error if the system RNG fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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