table

package
v0.0.0-...-f974911 Latest Latest
Warning

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

Go to latest
Published: May 26, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDecorator = func(a ...interface{}) string {
	return fmt.Sprint(a...)
}

Functions

This section is empty.

Types

type Decorator

type Decorator func(a ...interface{}) string

type TableWriter

type TableWriter struct {
	Writer          io.Writer
	Header          []string
	HeaderDecorator Decorator
	ColPadding      int
	Rows            [][]string
	RowEmoji        string
}

func (*TableWriter) AddRow

func (w *TableWriter) AddRow(row []string)

func (*TableWriter) SetHeader

func (w *TableWriter) SetHeader(header []string)

func (*TableWriter) Write

func (w *TableWriter) Write()

Jump to

Keyboard shortcuts

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