printer

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVPrinter added in v1.6.0

type CSVPrinter struct {
	Opts *table.PrintOpts
}

func (*CSVPrinter) PrintObj added in v1.6.0

func (p *CSVPrinter) PrintObj(obj printable.Interface, w io.Writer) error

type Interface

type Interface interface {
	// PrintObj prints the object to the writer.
	PrintObj(obj printable.Interface, w io.Writer) error
}

func Printer

func Printer(format string, opts *Options) (Interface, error)

type JSONPrinter

type JSONPrinter struct{}

func (*JSONPrinter) PrintObj

func (p *JSONPrinter) PrintObj(obj printable.Interface, w io.Writer) error

type Options

type Options struct {
	TableOpts *table.PrintOpts
}

type TablePrinter

type TablePrinter struct {
	Opts *table.PrintOpts
}

func (*TablePrinter) PrintObj

func (p *TablePrinter) PrintObj(obj printable.Interface, w io.Writer) (err error)

type YAMLPrinter added in v1.2.0

type YAMLPrinter struct{}

func (*YAMLPrinter) PrintObj added in v1.2.0

func (p *YAMLPrinter) PrintObj(obj printable.Interface, w io.Writer) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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