Esc

parse_uuid

procedureextensionsince 0.36.1Source
  • macOS: parse_uuid works on macOS
  • Linux: parse_uuid works on Linux
  • Windows: parse_uuid works on Windows
  • Wasm: parse_uuid works on Wasm

Reads canonical hex, urn:uuid:hex, or {hex}; e.g. id, err := parse_uuid(text). Fixed maximum input size is 45 bytes; parsing never allocates.

Signature

parse_uuid :: (text: string) -> (Uuid, Uuid_Error)

See also