Documentation ¶
Index ¶
- Variables
- type Fmt
- func (f *Fmt) Error(a ...interface{}) (int, error)
- func (f *Fmt) Errorf(format string, a ...interface{}) (int, error)
- func (f *Fmt) Errorln(a ...interface{}) (int, error)
- func (f *Fmt) Info(a ...interface{}) (int, error)
- func (f *Fmt) Infof(format string, a ...interface{}) (int, error)
- func (f *Fmt) Infoln(a ...interface{}) (int, error)
- func (f *Fmt) Success(a ...interface{}) (int, error)
- func (f *Fmt) Successf(format string, a ...interface{}) (int, error)
- func (f *Fmt) Successln(a ...interface{}) (int, error)
- func (f *Fmt) Warn(a ...interface{}) (int, error)
- func (f *Fmt) Warnf(format string, a ...interface{}) (int, error)
- func (f *Fmt) Warnln(a ...interface{}) (int, error)
- type Opt
- type TableFactory
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 Opt ¶
type Opt func(*internalTable)
func WithAutoMergeByIndexes ¶
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
Click to show internal directories.
Click to hide internal directories.