Skip to main content

Module output

Module output 

Source
Expand description

JSON and table formatting utilities for gor.

Provides helpers for printing JSON output with optional field selection, date formatting, and number formatting. All output functions print to stdout and are intended for use by command implementations.

Functions§

format_count
Format a number with comma separators for thousands.
format_date
Format an ISO 8601 date string into a human-readable form.
print_json
Print a serializable value as pretty JSON to stdout.