printer

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPrinter

type IPrinter interface {
	Keys(...string) IPrinter
	Record(...string) IPrinter
	BulkRecords(...[]string) IPrinter
	Print()
}

type NopPrinter

type NopPrinter struct{}

func (*NopPrinter) BulkRecords

func (n *NopPrinter) BulkRecords(_ ...[]string) IPrinter

func (*NopPrinter) Keys

func (n *NopPrinter) Keys(_ ...string) IPrinter

func (*NopPrinter) Print

func (n *NopPrinter) Print()

func (*NopPrinter) Record

func (n *NopPrinter) Record(_ ...string) IPrinter

func (*NopPrinter) SetWriter

func (n *NopPrinter) SetWriter(_ io.Writer) IPrinter

type TablePrinter

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

func NewTablePrinter

func NewTablePrinter(options TablePrinterOptions, w io.Writer) *TablePrinter

func (*TablePrinter) BulkRecords

func (t *TablePrinter) BulkRecords(records ...[]string) IPrinter

func (*TablePrinter) Keys

func (t *TablePrinter) Keys(keys ...string) IPrinter

func (*TablePrinter) Print

func (t *TablePrinter) Print()

func (*TablePrinter) Record

func (t *TablePrinter) Record(recordValues ...string) IPrinter

type TablePrinterOptions

type TablePrinterOptions struct {
	WrapLinesDisabled bool
}

Jump to

Keyboard shortcuts

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