printer

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Outcome added in v0.5.0

type Outcome uint8
const (
	None Outcome = iota
	Up
	Down
	Err
)

type Row added in v0.5.0

type Row struct {
	Intro   []string
	Entries []Outcome
}

type Table added in v0.5.0

type Table struct {
	Headers []string
	Rows    []Row
}

func TableWithHeaders added in v0.5.0

func TableWithHeaders(headers []string) *Table

func (*Table) AddRow added in v0.5.0

func (p *Table) AddRow(intro []string, outcomes ...Outcome)

func (*Table) Render added in v0.5.0

func (p *Table) Render(out io.Writer, outputFormat string)

Jump to

Keyboard shortcuts

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