gotable: github.com/muesli/gotable Index | Files | Directories

package gotable

import "github.com/muesli/gotable"

Index

Package Files

table.go

type Table Uses

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

Table is a helper for printing data in sheet form

func NewTable Uses

func NewTable(headers []string, widths []int64, emptyText string) Table

NewTable returns a new table

func (*Table) AppendRow Uses

func (t *Table) AppendRow(row []interface{})

AppendRow adds a row to the end of the table

func (*Table) Print Uses

func (t *Table) Print() error

Print writes the entire table to stdout

func (*Table) PrintSummary Uses

func (t *Table) PrintSummary() error

PrintSummary writes the table summary to stdout

func (*Table) SetSummary Uses

func (t *Table) SetSummary(summary []interface{})

SetSummary sets a summary for this table, to be printed below the table

Directories

PathSynopsis
examples

Package gotable imports 4 packages (graph) and is imported by 1 packages. Updated 2019-08-17. Refresh now. Tools for package owners.