table

package
v0.0.0-...-04bc5fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter func(string, ...interface{}) string

type Row

type Row struct {
	Cells []string
	Style Style
}

type Style

type Style struct {
	Fg    int
	Bg    int
	AltBg int
	Mode  int
}

type Table

type Table struct {
	Width int
	Fg    int
	Bg    int
	AltBg int
	// contains filtered or unexported fields
}

func New

func New(header []string, defStyle Style) *Table

func (*Table) AddRow

func (t *Table) AddRow(row []string, style Style)

func (*Table) Render

func (t *Table) Render()

func (*Table) SetColStyle

func (t *Table) SetColStyle(colIdx int, style Style)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL