printer

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintText

func PrintText(item Printable, out io.Writer, includeCols []string)

PrintText prints the output in text (table) format

Types

type OutputType

type OutputType string

OutputType is the type of output

const (
	// Text prints the output in text (table) format
	Text OutputType = "text"
	// JSON prints the output in JSON format
	JSON OutputType = "json"
)

type Printable

type Printable interface {
	Cols() []string
	ColsMap() map[string]string
	KV() []map[string]interface{}
}

Printable is the interface for any printable object

Jump to

Keyboard shortcuts

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