printer

package
v1.1.4-rc1 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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