Documentation
¶
Overview ¶
Package id generates identifiers for hex applications.
One consistent surface for the three ID formats we reach for most:
- UUID v4 — random 128-bit ID, no time component
- UUID v7 — time-sortable 128-bit ID (RFC 9562)
- ULID — 128-bit time-sortable, Crockford base32
- KSUID — 27-char time-sortable
Prefer UUID v7 or ULID for new tables — they are sortable by insertion time, which speeds up index scans without giving up global uniqueness.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.