Skip to main content

Module util

Module util 

Source
Expand description

Shared utility functions.

Functionsยง

extract_json
Pull a JSON object out of a reply that may be fenced or prefaced.
timestamp_id
Generate a hex-encoded nanosecond timestamp ID with a prefix.
truncate
Enough of a long string to recognise, without pasting the whole thing into an error message.