Versions in this module Expand all Collapse all v0 v0.0.1 Jan 10, 2024 Changes in this version + type Format int + const Csv + const Json + const None + const Table + const Yaml + func FormatOfName(name string) (Format, bool) + func FormatOfValue(value int) (Format, bool) + func (t Format) Index() int + func (t Format) String() string + type TableData interface + Array func() [][]string + type Writer struct + func New(w io.Writer, f Format) *Writer + func NewStd() *Writer + func (r *Writer) Csv(records [][]string) error + func (r *Writer) Json(v any) error + func (r *Writer) MustWrite(data TableData) + func (r *Writer) Printf(s string, a ...any) (n int, err error) + func (r *Writer) Table(records [][]string) error + func (r *Writer) Write(data TableData) error + func (r *Writer) Yaml(v any) error