output

package
v0.0.0-...-2175bb8 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptyHeaders error = errors.New("headers must supplied to build a table")
View Source
var ErrEmptyRows error = errors.New("at least one must supplied to build a table")

Functions

This section is empty.

Types

type Fmt

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

func NewFmt

func NewFmt(w io.Writer) *Fmt

func (*Fmt) Error

func (f *Fmt) Error(a ...interface{}) (int, error)

func (*Fmt) Errorf

func (f *Fmt) Errorf(format string, a ...interface{}) (int, error)

func (*Fmt) Errorln

func (f *Fmt) Errorln(a ...interface{}) (int, error)

func (*Fmt) Info

func (f *Fmt) Info(a ...interface{}) (int, error)

func (*Fmt) Infof

func (f *Fmt) Infof(format string, a ...interface{}) (int, error)

func (*Fmt) Infoln

func (f *Fmt) Infoln(a ...interface{}) (int, error)

func (*Fmt) Success

func (f *Fmt) Success(a ...interface{}) (int, error)

func (*Fmt) Successf

func (f *Fmt) Successf(format string, a ...interface{}) (int, error)

func (*Fmt) Successln

func (f *Fmt) Successln(a ...interface{}) (int, error)

func (*Fmt) Warn

func (f *Fmt) Warn(a ...interface{}) (int, error)

func (*Fmt) Warnf

func (f *Fmt) Warnf(format string, a ...interface{}) (int, error)

func (*Fmt) Warnln

func (f *Fmt) Warnln(a ...interface{}) (int, error)

type Opt

type Opt func(*internalTable)

func WithAutoMergeByIndexes

func WithAutoMergeByIndexes(indexes []int) Opt

func WithIndexColumn

func WithIndexColumn() Opt

type TableFactory

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

func NewTableFactory

func NewTableFactory(w io.Writer) *TableFactory

func (*TableFactory) CreateAndPrint

func (tf *TableFactory) CreateAndPrint(headers []string, rows [][]string, opts ...Opt) error

Jump to

Keyboard shortcuts

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