terminal

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 8 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 interface {
	AddRow(row []string)
	AddMultipleRows(rows [][]string)
	SetHeader(header []string)
	SortByColumnIndex(col int)
	SortByColumnHeader(header string)
	PrintTable()
}

Table .

func NewTable

func NewTable(w io.Writer) Table

NewTable .

type UI

type UI interface {
	NewTable() Table
}

UI defines the UI Interface

func NewUI

func NewUI(input io.Reader, output io.Writer) UI

NewUI returns a reader for inputs and writer for outputs.

Jump to

Keyboard shortcuts

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