Versions in this module Expand all Collapse all v0 v0.3.0 Sep 10, 2026 v0.2.0 Aug 24, 2026 Changes in this version + const DefaultYAMLIndent + var ErrNoData = errors.New("output: no Data") + var ErrNoTable = errors.New("output: no Table") + var ErrUnknownFormat = errors.New("output: unknown format") + var ErrYAMLIndent = errors.New("output: unsupported YAML indent") + func WriteJSON(w io.Writer, v any, style JSONStyle) error + func WriteYAML(w io.Writer, v any, style YAMLStyle) error + type Document struct + CSVStyle table.CSVStyle + Data any + JSONStyle JSONStyle + Table *table.Table + TextStyle table.Style + YAMLStyle YAMLStyle + func (d Document) Write(w io.Writer, f Format) error + type Format int + const CSV + const JSON + const Text + const YAML + func Formats() []Format + func ParseFormat(s string) (Format, error) + func (f *Format) Set(s string) error + func (f *Format) UnmarshalText(b []byte) error + func (f Format) MarshalText() ([]byte, error) + func (f Format) String() string + type JSONStyle struct + Compact bool + EscapeHTML bool + type YAMLStyle struct + Indent int v0.1.0 Aug 22, 2026