Versions in this module Expand all Collapse all v0 v0.0.4 Oct 17, 2023 v0.0.3 Oct 15, 2023 v0.0.2 Oct 11, 2023 v0.0.1 Oct 10, 2023 Changes in this version + func WordWrap(text []byte, lineWidth int) []byte + type Cell struct + Height int + Lines []Line + Next int + Width int + func NewCell(fromLines ...Line) *Cell + func NewCellFromBytes(b []byte, lineWidth int) *Cell + func (c *Cell) WriteFiller(w io.Writer, n int) (err error) + func (c *Cell) WriteLine(w io.Writer) (err error) + type CellGenerator func() (*Cell, error) + type Grid []Row + func NewGrid(columns, rows int, from CellGenerator) (Grid, error) + func (g Grid) MiddleBorder() []byte + func (g Grid) Normalize() + func (g Grid) Write(w io.Writer) (n int, err error) + func (g Grid) WriteBottomBorder(w io.Writer) (n int, err error) + func (g Grid) WriteTopBorder(w io.Writer) (n int, err error) + type Line []byte + type Row []*Cell + func (r Row) Height() (height int) + func (r Row) Write(w io.Writer) (n int, err error)