Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct { CellSeparator string PrintHeader func(io.Writer, string) error PrintSeparator func(io.Writer, string) error PrintData func(io.Writer, int, string) error // contains filtered or unexported fields }
Table contains data for a table to be printed.
func (*Table) AddColumn ¶
AddColumn adds a new header field with the header and format, which is expected to be template string compatible with text/template. When compiling the format fails, AddColumn panics.
Click to show internal directories.
Click to hide internal directories.