output

package
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintDetail

func PrintDetail(pairs [][2]string)

Detail prints key-value pairs, aligned.

func PrintJSON

func PrintJSON(data json.RawMessage)

PrintJSON prints raw JSON data (already a json.RawMessage from the API).

Types

type Format

type Format string
const (
	FormatTable Format = "table"
	FormatJSON  Format = "json"
)

func ParseFormat

func ParseFormat(s string) Format

type Table

type Table struct {
	// contains filtered or unexported fields
}

Table writes aligned columns to stdout.

func NewTable

func NewTable(headers ...string) *Table

func (*Table) AddRow

func (t *Table) AddRow(values ...string)

func (*Table) Flush

func (t *Table) Flush()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL