Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Table ¶
type Table struct {
Out io.Writer
Rows [][]string
ColumnWidths []int
ColumnAlign []int
}
func CreateTable ¶
func CreateTable(out io.Writer) Table
func (*Table) GetColumnAlign ¶
func (t *Table) GetColumnAlign(i int) int
GetColumnAlign return the column alignment
func (*Table) SetColumnAlign ¶
func (t *Table) SetColumnAlign(i int, align int)
SetColumnAlign sets the column alignment for the given column index
func (*Table) SetColumnsAligns ¶
func (t *Table) SetColumnsAligns(colAligns []int)
SetColumnsAligns sets the alignment of the columns
Click to show internal directories.
Click to hide internal directories.