Documentation ¶
Overview ¶
Package tableprinter implements a pretty printer that writes rows and columns as a formatted table.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnGetter ¶
type ColumnGetter func(row interface{}) string
A ColumnGetter returns the selected ColumnGetter value of a row.
type Printer ¶
type Printer struct {
// contains filtered or unexported fields
}
A Printer is a formatter for writing tables.
The header of the table is written by formatting the column names. The body of the table is written by formatting each row using the selected columns in the given order.
Click to show internal directories.
Click to hide internal directories.