Documentation ¶
Overview ¶
Example ¶
var tbl Data tbl.Set(0, 0, "foo") tbl.Set(0, 1, "bar") tbl.Set(1, 0, "", Span(-1), Pad('-')) tbl.Set(2, 0, "baz", Span(2), Center, Pad('.')) (&Terminal{CellPad: " | "}).Write(os.Stdout, &tbl)
Output: foo | bar --------- ...baz...
Index ¶
- type Align
- type CSV
- type CellOpt
- type Cursor
- func (c *Cursor) NextRow() *Cursor
- func (c *Cursor) Set(data any, opts ...CellOpt) *Cursor
- func (c *Cursor) SetString(text string, opts ...CellOpt) *Cursor
- func (c *Cursor) SetStrings(texts ...string) *Cursor
- func (c *Cursor) Sets(data ...any) *Cursor
- func (c *Cursor) Skip(i int) *Cursor
- func (c *Cursor) With(opts ...CellOpt) with
- type Data
- type Pad
- type Span
- type Style
- type Styler
- type Styles
- type Terminal
- type Writer
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cursor ¶
type Cursor struct { Error error // contains filtered or unexported fields }
func (*Cursor) SetStrings ¶
type Data ¶
type Data struct {
// contains filtered or unexported fields
}
func (*Data) ColumnWidths ¶
Click to show internal directories.
Click to hide internal directories.