table

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Examples

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
}
Example
tbl := NewTable(2)
tbl.AddRow("One", "1")
tbl.AddRow("Two", "2")
tbl.AddRow("Three", "3")
tbl.AddRow("Four", "4")
tbl.Print()
Output:

One     1
Two     2
Three   3
Four    4

func NewTable

func NewTable(columns int) Table

func (*Table) AddRow

func (t *Table) AddRow(cells ...string)

func (*Table) Fprint

func (t *Table) Fprint(w io.Writer) error

func (*Table) Print

func (t *Table) Print() error

Jump to

Keyboard shortcuts

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