src/uuid7

Search:
Group by:

Types

Uuid = array[16, uint8]

Procs

proc `$`(uuid: Uuid): string {....raises: [], tags: [], forbids: [].}
uuid to string

Example:

block:
  let uuid7 = initUuid7()
  echo $uuid7
proc fromFields(d1: uint32; d2: uint16; d3: uint16; d4: array[8, uint8]): Uuid {.
    inline, ...raises: [], tags: [], forbids: [].}
proc initUuid7(ts: Time = getTime()): Uuid {....raises: [], tags: [], forbids: [].}
init uuid7

Example:

block:
  let uuid7 = initUuid7()
  echo $uuid7