Documentation
¶
Index ¶
Constants ¶
View Source
const ( FormatTable = "table" FormatTSV = "tsv" FormatCSV = "csv" FormatJSON = "json" )
FormatTable, FormatTSV, FormatCSV, FormatJSON are the supported --mode values.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
Render writes the result to out in the named format. An empty format string auto-detects (table when out is a terminal, TSV otherwise). The headers argument suppresses the header row for the row-shaped formats (table, tsv, csv); JSON ignores it since object keys carry the column names regardless.
func WriteTableBody ¶
WriteTableBody renders the header + separator + data rows, but no footer. Used by write previews; always shows the header (previews are a labeled snapshot, not a result set the user has flagged headerless).
Types ¶
Click to show internal directories.
Click to hide internal directories.