package
Version:
v0.8.5
Opens a new window with list of versions in this module.
Published: Apr 9, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Format represents the output format.
const (
FormatTable Format = "table"
FormatJSON Format = "json"
FormatYAML Format = "yaml"
)
Printer handles output formatting.
NewPrinter creates a Printer for the given format string.
IsRaw returns true if the output format requires raw JSON/YAML.
PrintJSON outputs a structured value as JSON or YAML.
func (p *Printer) PrintMessage(format string, args ...interface{})
PrintMessage prints a simple message (used across all formats).
PrintRaw outputs raw bytes as JSON or YAML.
PrintTable prints a table using the given headers and rows.
Table collects headers, rows, and an optional footer, then renders
them using olekukonko/tablewriter.
NewTable creates a new Table with the given column headers.
AddRow appends a row to the table.
Render writes the table to w.
func (t *Table) SetFooter(format string, args ...interface{})
SetFooter sets a summary line displayed below the table.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.