Documentation
¶
Overview ¶
Package id generates prefixed NanoIDs — short, URL-safe, collision-resistant public identifiers (Stripe-style: "sess_V1StGXR8Zx7pq"). They are the primary keys for runtime entities, friendlier to read and copy than a UUID while carrying far more entropy than the old randHex(4) handles (which collided around ~65k rows).
Index ¶
Constants ¶
View Source
const Size = 16
Size is the number of random characters after the prefix. 16 chars over a 64-symbol alphabet is 96 bits of entropy — collision-safe well past any realistic row count.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.