Versions in this module Expand all Collapse all v0 v0.0.1 Oct 26, 2018 Changes in this version + const ALIGN_CENTER + const ALIGN_DEFAULT + const ALIGN_LEFT + const ALIGN_RIGHT + const BgBlackColor + const BgBlueColor + const BgCyanColor + const BgGreenColor + const BgHiBlackColor + const BgHiBlueColor + const BgHiCyanColor + const BgHiGreenColor + const BgHiMagentaColor + const BgHiRedColor + const BgHiWhiteColor + const BgHiYellowColor + const BgMagentaColor + const BgRedColor + const BgWhiteColor + const BgYellowColor + const Bold + const CENTER + const COLUMN + const ESC + const FgBlackColor + const FgBlueColor + const FgCyanColor + const FgGreenColor + const FgHiBlackColor + const FgHiBlueColor + const FgHiCyanColor + const FgHiGreenColor + const FgHiMagentaColor + const FgHiRedColor + const FgHiWhiteColor + const FgHiYellowColor + const FgMagentaColor + const FgRedColor + const FgWhiteColor + const FgYellowColor + const Italic + const MAX_ROW_WIDTH + const NEWLINE + const Normal + const ROW + const SEP + const SPACE + const UnderlineSingle + func Color(colors ...int) []int + func ConditionString(cond bool, valid, inValid string) string + func DisplayWidth(str string) int + func Pad(s, pad string, width int) string + func PadLeft(s, pad string, width int) string + func PadRight(s, pad string, width int) string + func Title(name string) string + func WrapString(s string, lim int) ([]string, int) + func WrapWords(words []string, spc, lim, pen int) [][]string + type Border struct + Bottom bool + Left bool + Right bool + Top bool + type Colors []int + type Table struct + func NewCSV(writer io.Writer, fileName string, hasHeader bool) (*Table, error) + func NewCSVReader(writer io.Writer, csvReader *csv.Reader, hasHeader bool) (*Table, error) + func NewWriter(writer io.Writer) *Table + func (t *Table) Append(row []string) + func (t *Table) AppendBulk(rows [][]string) + func (t *Table) ClearFooter() + func (t *Table) ClearRows() + func (t *Table) NumLines() int + func (t *Table) Render() + func (t *Table) SetAlignment(align int) + func (t *Table) SetAutoFormatHeaders(auto bool) + func (t *Table) SetAutoMergeCells(auto bool) + func (t *Table) SetAutoWrapText(auto bool) + func (t *Table) SetBorder(border bool) + func (t *Table) SetBorders(border Border) + func (t *Table) SetCaption(caption bool, captionText ...string) + func (t *Table) SetCenterSeparator(sep string) + func (t *Table) SetColMinWidth(column int, width int) + func (t *Table) SetColWidth(width int) + func (t *Table) SetColumnAlignment(keys []int) + func (t *Table) SetColumnColor(colors ...Colors) + func (t *Table) SetColumnSeparator(sep string) + func (t *Table) SetFooter(keys []string) + func (t *Table) SetFooterAlignment(fAlign int) + func (t *Table) SetFooterColor(colors ...Colors) + func (t *Table) SetHeader(keys []string) + func (t *Table) SetHeaderAlignment(hAlign int) + func (t *Table) SetHeaderColor(colors ...Colors) + func (t *Table) SetHeaderLine(line bool) + func (t *Table) SetNewLine(nl string) + func (t *Table) SetReflowDuringAutoWrap(auto bool) + func (t *Table) SetRowLine(line bool) + func (t *Table) SetRowSeparator(sep string)