Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TablePrinter ¶
type TablePrinter struct { Columns []Column Padding string // contains filtered or unexported fields }
TablePrinter is a utility to print a text table where the columns are sized automatically to the content.
func NewTablePrinter ¶
func NewTablePrinter(output io.Writer, columns []Column, padding string) *TablePrinter
func (*TablePrinter) Append ¶
func (receiver *TablePrinter) Append(row []string)
func (*TablePrinter) Write ¶
func (receiver *TablePrinter) Write() error
Click to show internal directories.
Click to hide internal directories.