Documentation
¶
Overview ¶
Package id provides unique identifier generation for moat resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate creates a unique identifier with the given prefix. Format: <prefix>_<12 hex chars> (e.g., "run_abc123def456", "snap_def678abc123") Uses 6 cryptographically random bytes encoded as 12 hex characters. This provides 2^48 possible IDs (~281 trillion), making collisions extremely unlikely.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.