ids

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package ids creates the opaque IDs of database rows (PHASE1 §1: "ULID-like").

An ID is a short type prefix and 26 characters of lower-case Crockford Base32: 48 bits of milliseconds since 1970 followed by 80 random bits, so IDs sort by creation time and can't be guessed. Example: crt_01jaxk3s7m0000000000000000.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(prefix string, now time.Time, rnd io.Reader) (string, error)

New returns a new ID with prefix. rnd nil means crypto/rand.

Types

This section is empty.

Jump to

Keyboard shortcuts

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