Versions in this module Expand all Collapse all v1 v1.8.0 Aug 17, 2023 Changes in this version + var ASCIIDividers = Dividers + var MarkdownDividers = Dividers + var NoDividers = Dividers + var StarDividers = Dividers + var UnicodeDividers = Dividers + var UnicodeRoundedDividers = Dividers + type Alignment uint8 + const AlignBottom + const AlignCenter + const AlignLeft + const AlignRight + const AlignTop + type Borders struct + Bottom bool + Left bool + Right bool + Top bool + type Dividers struct + ALL string + ES string + ESW string + EW string + NE string + NES string + NEW string + NS string + NSW string + NW string + SW string + type Style int + const StyleBlack + const StyleBlue + const StyleBold + const StyleBrightBlack + const StyleBrightBlue + const StyleBrightCyan + const StyleBrightGreen + const StyleBrightMagenta + const StyleBrightRed + const StyleBrightWhite + const StyleBrightYellow + const StyleCyan + const StyleDim + const StyleGreen + const StyleItalic + const StyleMagenta + const StyleNormal + const StyleRed + const StyleUnderline + const StyleWhite + const StyleYellow + type Table struct + func New(w io.Writer) *Table + func (t *Table) AddFooters(footers ...string) + func (t *Table) AddHeaders(headers ...string) + func (t *Table) AddRow(cols ...string) + func (t *Table) AddRows(rows ...[]string) + func (t *Table) LoadCSV(r io.Reader, hasHeaders bool) error + func (t *Table) Render() + func (t *Table) SetAlignment(columns ...Alignment) + func (t *Table) SetAutoMerge(enabled bool) + func (t *Table) SetAutoMergeHeaders(enabled bool) + func (t *Table) SetAvailableWidth(w int) + func (t *Table) SetBorderBottom(enabled bool) + func (t *Table) SetBorderLeft(enabled bool) + func (t *Table) SetBorderRight(enabled bool) + func (t *Table) SetBorderTop(enabled bool) + func (t *Table) SetBorders(enabled bool) + func (t *Table) SetColSpans(rowIndex int, colSpans ...int) + func (t *Table) SetColumnMaxWidth(maxColumnWidth int) + func (t *Table) SetDividers(d Dividers) + func (t *Table) SetFillWidth(enabled bool) + func (t *Table) SetFooterAlignment(columns ...Alignment) + func (t *Table) SetFooterColSpans(rowIndex int, colSpans ...int) + func (t *Table) SetFooters(footers ...string) + func (t *Table) SetHeaderAlignment(columns ...Alignment) + func (t *Table) SetHeaderColSpans(rowIndex int, colSpans ...int) + func (t *Table) SetHeaderStyle(s Style) + func (t *Table) SetHeaderVerticalAlignment(a Alignment) + func (t *Table) SetHeaders(headers ...string) + func (t *Table) SetLineStyle(s Style) + func (t *Table) SetPadding(padding int) + func (t *Table) SetRowLines(enabled bool)