printer

package
v0.0.0-...-824b123 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TabbedPrinter

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

TabbedPrinter abstracts a writer to print out tabstopped text into aligned text

func NewTabbedPrinter

func NewTabbedPrinter() *TabbedPrinter

NewTabbedPrinter creates a default TabbedPrinter

func (*TabbedPrinter) AddRow

func (tp *TabbedPrinter) AddRow(columns ...any)

AddRow add rows to the output

func (*TabbedPrinter) Print

func (tp *TabbedPrinter) Print()

Print flushes the writer buffer to default output

func (*TabbedPrinter) SetHeaders

func (tp *TabbedPrinter) SetHeaders(headers ...string)

SetHeaders set titles for each column of the output

Jump to

Keyboard shortcuts

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