Documentation ¶ Index ¶ func Print(t Table) func ToString(t Table) string type Style func AllStyle() []Style func ParseStyle(s string) (Style, bool) func (e Style) String() string type Table func AddRow(t Table, row []string) Table func New(headers []string) Table func WithStyle(t Table, style Style) Table Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Print ¶ func Print(t Table) func ToString ¶ func ToString(t Table) string Types ¶ type Style ¶ added in v0.4.0 type Style string const ( StylePlain Style = "plain" StyleBox Style = "box" StyleMarkdown Style = "markdown" ) func AllStyle ¶ added in v0.48.3 func AllStyle() []Style func ParseStyle ¶ added in v0.13.1 func ParseStyle(s string) (Style, bool) func (Style) String ¶ added in v0.4.0 func (e Style) String() string type Table ¶ type Table struct { Headers []string Rows [][]string Style Style } func AddRow ¶ func AddRow(t Table, row []string) Table func New ¶ func New(headers []string) Table func WithStyle ¶ added in v0.48.1 func WithStyle(t Table, style Style) Table Source Files ¶ View all Source files table.go Click to show internal directories. Click to hide internal directories.