encoding/uuid

Generate one or more UUIDs (random v4 or time-ordered v7).

Free / no pricing configured

What it does

Generates UUIDs: version 4 (random) or version 7 (time-ordered, sortable by creation time).

Primary use cases

  • Creating unique identifiers for records, requests, or idempotency keys.
  • Generating sortable IDs (v7) for database primary keys.

Good to know

version is 4 (default) or 7. count defaults to 1 (max 100). Values are freshly generated each call. Computed locally.

Parameters

countintegeroptional

How many UUIDs to generate. Defaults to 1.

versionintegeroptional

UUID version. 4 = random, 7 = time-ordered. Defaults to 4.

encoding/uuid — Faro