Versions in this module Expand all Collapse all v0 v0.1.3 Oct 24, 2024 v0.1.2 Dec 3, 2022 v0.1.1 Sep 14, 2022 Changes in this version + var DefaultColorStylesClient = &defaultColorStyles + var DefaultContour = Contour + var DefaultOption = &Option + var EmptyContour = Contour + var MariaDBContour = Contour + func DefaultTransformContentByColor(in interface{}) interface + func DefaultTransformContentByTime(in interface{}) interface + func DeleteDefaultColor(in ...interface{}) + func DisEnableDefaultColor() + func EnableDefaultColor() + func SetDefaultColor(cor color.Color, in ...interface{}) + type Align int + const AlignBottomCenter + const AlignBottomLeft + const AlignBottomRight + const AlignCenter + const AlignLeft + const AlignRight + const AlignTopCenter + const AlignTopLeft + const AlignTopRight + func (a Align) Repeat(in string, count uint) string + func (a Align) Repeats(in []string, count uint) []string + type BaseCell struct + func NewBaseCell(ag Align, in []string) *BaseCell + func (c *BaseCell) Add(in ...string) + func (c *BaseCell) Align() Align + func (c *BaseCell) Height() uint + func (c *BaseCell) Line(idx uint) string + func (c *BaseCell) Lines() (out []string) + func (c *BaseCell) SetHeight(h uint) + func (c *BaseCell) SetWidth(w uint) + func (c *BaseCell) Width() uint + type Cell interface + Add func(...string) + Align func() Align + Height func() uint + Line func(uint) string + Lines func() []string + SetHeight func(uint) + SetWidth func(uint) + Width func() uint + type Contour struct + CH string + CV string + D string + DI string + DL string + DR string + I string + L string + LI string + R string + RI string + T string + TI string + TL string + TR string + func (c Contour) Footer(sw []uint) string + func (c Contour) Handler(sw []uint) string + func (c Contour) Intersection(sw []uint) string + type EmptyCell struct + func NewEmptyCell(w, h uint) EmptyCell + func (c EmptyCell) Add(in ...string) + func (c EmptyCell) Line(uint) string + func (c EmptyCell) Lines() (out []string) + type InterfaceCell struct + AnyVal []interface{} + func NewInterfaceCell(ag Align, data ...interface{}) *InterfaceCell + func (c *InterfaceCell) Add(in ...string) + func (c *InterfaceCell) ToBaseCell() *BaseCell + type MergeCell struct + Column uint + Row uint + func NewMergeCells(cells [][]Cell) *MergeCell + type Option struct + Align Align + Contour Contour + ExpendID bool + TransformContents []TransformContent + type RowCell []Cell + type Table struct + Body []RowCell + Footers RowCell + Headers RowCell + Opt *Option + func DefaultSimpleTable(in interface{}) *Table + func NewTable(opt *Option) *Table + func SimpleTable(in interface{}, opt *Option) (*Table, error) + func (t *Table) AddBody(in ...interface{}) *Table + func (t *Table) AddBodyRow(r RowCell) *Table + func (t *Table) AddHeaders(in ...interface{}) *Table + func (t *Table) Copy() *Table + func (t *Table) GetCellAt(p image.Point) (Cell, error) + func (t *Table) Page(limit, offset int) *Table + func (t *Table) Search(eq interface{}, str string) (Cell, error) + func (t *Table) SetBody(idx int, in ...interface{}) *Table + func (t *Table) SetCellAt(p image.Point, c Cell) error + func (t *Table) SetHeaders(in ...interface{}) *Table + func (t *Table) SetHeadersRow(r RowCell) *Table + func (t *Table) Sort(column int, less func(i, j int) bool) *Table + func (t *Table) String() (out string) + type TransformContent func(in interface{}) interface