table

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutputTable

type OutputTable struct {
	Header []string
	Rows   []string
	Output io.Writer
}

OutputTable is struct of tables for outputs

func NewOutputTable

func NewOutputTable(o io.Writer) *OutputTable

NewOutputTable is an instance of OutputTable

func (*OutputTable) AddRow

func (t *OutputTable) AddRow(s []string)

AddRow adds row to table

func (*OutputTable) Print

func (t *OutputTable) Print()

Print shows table output

Jump to

Keyboard shortcuts

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