Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TableWriter ¶
type TableWriter struct {
// contains filtered or unexported fields
}
TableWriter render the data as table-like format.
func NewTableWriter ¶
func NewTableWriter(w io.Writer) *TableWriter
NewTableWriter return a new table writer.
func (*TableWriter) AppendBulk ¶
func (t *TableWriter) AppendBulk(rows [][]string)
AppendBulk append the rows.
func (*TableWriter) SetColumnWidths ¶
func (t *TableWriter) SetColumnWidths(widths []int)
SetColumnWidths set the width of columns. If the size of value is over the width, it mosaic with "...".
func (*TableWriter) SetColumns ¶
func (t *TableWriter) SetColumns(cols []string)
SetColumns set columns of table at the header.
func (*TableWriter) SetHeaderBorder ¶
func (t *TableWriter) SetHeaderBorder(ok bool)
SetHeaderBorder set the border of the header.
Click to show internal directories.
Click to hide internal directories.