table

package
v0.0.0-...-237ed90 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2019 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 {
	*tabwriter.Writer
}

Table is an easier-to-use tabwriter with an Append interface

func New

func New(w io.Writer, header []string) *Table

New constructs a new Table with the given header for writing to the given io.Writer

func (*Table) Append

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

Append appends a complete row to the Table

func (*Table) Render

func (t *Table) Render()

Render flushes the table to the io.Writer

Jump to

Keyboard shortcuts

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