table

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table struct {
	// contains filtered or unexported fields
}

Table creates an output table.

func New

func New(w io.Writer) *Table

New creates an instance of table.

func (*Table) Append

func (t *Table) Append(row []string)

Append appends a row to the table.

func (*Table) AppendBulk

func (t *Table) AppendBulk(rows [][]string)

AppendBulk appends multiple rows to the table.

func (*Table) Render

func (t *Table) Render() error

Render writes the output to the table's writer.

func (*Table) SetHeader

func (t *Table) SetHeader(columns []string)

SetHeader sets the header for the table.

Jump to

Keyboard shortcuts

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