Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnOption ¶ added in v1.31.1
type ColumnOption func(*columnCfg)
func RightAlign ¶ added in v1.31.1
func RightAlign() ColumnOption
type TableOption ¶ added in v1.31.1
type TableOption func(*tableCfg)
func WithBorders ¶ added in v1.31.1
func WithBorders() TableOption
type TableWriter ¶
type TableWriter struct {
// contains filtered or unexported fields
}
func New ¶
func New(cols ...Column) *TableWriter
New creates a new TableWriter. Unlike text/tabwriter, this works with CLI escape codes, and allows for info
in separate lines
func (*TableWriter) Flush ¶
func (w *TableWriter) Flush(out io.Writer, opts ...TableOption) error
func (*TableWriter) Write ¶
func (w *TableWriter) Write(r map[string]interface{})
Click to show internal directories.
Click to hide internal directories.