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
Click to show internal directories.
Click to hide internal directories.