printer

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 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

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

type Row

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

type Table

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

func TableWithHeaders

func TableWithHeaders(headers []string) *Table

func (*Table) AddRow

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

func (*Table) Render

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