formatter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

func (*TableFormatter) Caption

func (p *TableFormatter) Caption(w io.Writer, caption string) error

func (*TableFormatter) Column

func (p *TableFormatter) Column(_ io.Writer, cols []string) error

func (*TableFormatter) Done

func (p *TableFormatter) Done(_ io.Writer) error

func (*TableFormatter) Iter

func (p *TableFormatter) Iter(_, ew io.Writer, row []string) error

func (*TableFormatter) Render

func (p *TableFormatter) Render(_ io.Writer, _ int) error

Jump to

Keyboard shortcuts

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