Versions in this module Expand all Collapse all v1 v1.2.1 Jan 26, 2025 v1.2.0 Jan 26, 2025 Changes in this version + const Auto + type Flexbox struct + Align Alignment + Basis int + Grow int + Max int + Min int + Shrink int type Flexed + Max int + type Shrinkable struct + Align Alignment + Max int + Min int + Weight int v1.1.0 Jan 21, 2025 Changes in this version + type Omit struct v1.0.0 Jan 19, 2025 Changes in this version + type Alignment int + const Center + const Left + const Right + type Column interface + type Decorator interface + ColumnSeparator func(rowIdx, colIdx int) string + RowSeparator func(rowIdx int, widths []int) string + func AsciiTableDecorator() Decorator + func BoxDrawingTableDecorator() Decorator + func ColorizeDecorator(parent Decorator, color *color.Color) Decorator + type Flexed struct + Align Alignment + Min int + Weight int + type GapDecorator struct + Gap string + Left string + Right string + func (d GapDecorator) ColumnSeparator(_, colIdx int) string + func (d GapDecorator) RowSeparator(rowIdx int, widths []int) string + type Rigid struct + Align Alignment + Max int + Min int + type TableDecorator struct + BottomIntersections [3]string + HorizBorders [3]string + MiddleIntersections [3]string + TopIntersections [3]string + VertBorders [3]string + func (d TableDecorator) ColumnSeparator(_, colIdx int) string + func (d TableDecorator) RowSeparator(rowIdx int, widths []int) string + type Writer struct + func New() *Writer + func (w *Writer) Flush() error + func (w *Writer) SetColumns(cols ...Column) + func (w *Writer) SetDecorator(deco Decorator) + func (w *Writer) SetDefaultColumn(col Column) + func (w *Writer) SetOutput(out io.Writer) + func (w *Writer) SetWidth(width int) + func (w *Writer) Write(b []byte) (int, error) + func (w *Writer) WriteRow(cells ...any)