Versions in this module Expand all Collapse all v1 v1.0.2 Oct 11, 2022 v1.0.1 Oct 11, 2022 Changes in this version + const AlignCenter + const AlignLeft + const AlignRight + const LINE_BOTTOM + const LINE_INNER + const LINE_SUBTOP + const LINE_TOP + const TitleAsCaption + const TitleAsThSpan + var DefaultStyle = &TableStyle + var MaxColumns = 80 + func EnableUTF8() + func EnableUTF8PerLocale() + func SetHTMLStyleTitle(want titleStyle) + func SetModeHTML(onoff bool) + func SetModeMarkdown(onoff bool) + type Cell struct + func CreateCell(v interface{}, style *CellStyle) *Cell + func (c *Cell) Render(style *renderStyle) (buffer string) + func (c *Cell) Width() int + type CellStyle struct + Alignment TableAlignment + ColSpan int + type Element interface + Render func(*renderStyle) string + type Row struct + func CreateRow(items []interface{}) *Row + func (r *Row) AddCell(item interface{}) + func (r *Row) HTML(tag string, style *renderStyle) string + func (r *Row) Render(style *renderStyle) string + type Separator struct + func (s *Separator) Render(style *renderStyle) string + type StraightSeparator struct + func (s *StraightSeparator) Render(style *renderStyle) string + type Table struct + Style *TableStyle + func CreateTable() *Table + func (t *Table) AddHeaders(headers ...interface{}) + func (t *Table) AddRow(items ...interface{}) *Row + func (t *Table) AddSeparator() + func (t *Table) AddTitle(title interface{}) + func (t *Table) Render() string + func (t *Table) RenderHTML() (buffer string) + func (t *Table) SetAlign(align TableAlignment, columns ...int) + func (t *Table) SetHTMLStyleTitle(want titleStyle) + func (t *Table) SetModeHTML() + func (t *Table) SetModeMarkdown() + func (t *Table) SetModeTerminal() + func (t *Table) UTF8Box() + type TableAlignment int + type TableStyle struct + Alignment TableAlignment + BorderBottom string + BorderBottomLeft string + BorderBottomRight string + BorderI string + BorderLeft string + BorderRight string + BorderTop string + BorderTopLeft string + BorderTopRight string + BorderX string + BorderY string + PaddingLeft int + PaddingRight int + SkipBorder bool + Width int