Documentation
¶
Index ¶
- func GetTableStyle(tc *config.TableConfig) renderer.ColorizedConfig
- type ColorField
- type TableFormatter
- func (p *TableFormatter) Caption(w io.Writer, caption string) error
- func (p *TableFormatter) Column(_ io.Writer, cols []string) error
- func (p *TableFormatter) Done(_ io.Writer) error
- func (p *TableFormatter) Iter(_, ew io.Writer, row []string) error
- func (p *TableFormatter) Render(_ io.Writer, _ int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTableStyle ¶
func GetTableStyle(tc *config.TableConfig) renderer.ColorizedConfig
Types ¶
type ColorField ¶
type ColorField string
const ( ColorHeader ColorField = "header" ColorColumn ColorField = "column" ColorCaption ColorField = "caption" )
type TableFormatter ¶
type TableFormatter struct {
// contains filtered or unexported fields
}
func NewTableFormatter ¶
func NewTableFormatter(w io.Writer, tableConfig *config.TableConfig) *TableFormatter
Click to show internal directories.
Click to hide internal directories.