Versions in this module Expand all Collapse all v0 v0.1.0 Feb 17, 2026 Changes in this version + func WithMode(ctx context.Context, format Format) context.Context + type Format string + const JSON + const TSV + const Table + func FromContext(ctx context.Context) Format + type Formatter interface + Format func(w io.Writer, header []string, rows [][]string, data interface{}) error + func NewFormatter(f Format) Formatter + type JSONFormatter struct + func (f *JSONFormatter) Format(w io.Writer, header []string, rows [][]string, data interface{}) error + type TSVFormatter struct + func (f *TSVFormatter) Format(w io.Writer, header []string, rows [][]string, data interface{}) error + type TableFormatter struct + func (f *TableFormatter) Format(w io.Writer, header []string, rows [][]string, data interface{}) error