Versions in this module Expand all Collapse all v0 v0.1.0 Jan 11, 2026 Changes in this version + func Decode(toon string) (map[string]any, error) + func Diff(data any) map[string]any + func Encode(data any) (string, error) + func Only(data any, keys []string) (string, error) + type ArrayFlattener struct + func NewArrayFlattener(maxDepth int) *ArrayFlattener + func (f *ArrayFlattener) Flatten(items []any) *FlattenedData + func (f *ArrayFlattener) HasNestedObjects(items []any) bool + type ArrayUnflattener struct + func NewArrayUnflattener() *ArrayUnflattener + func (u *ArrayUnflattener) Unflatten(rows [][]any, columns []string) []map[string]any + type Config struct + DateFormat string + EscapeStyle string + KeyAliases map[string]string + MaxFlattenDepth int + MinRowsForTable int + NumberPrecision int + Omit []string + OmitKeys []string + TruncateStrings int + func DefaultConfig() *Config + type Decoder struct + func NewDecoder(config *Config) *Decoder + func (d *Decoder) Decode(toon string) (map[string]any, error) + type Encoder struct + func NewEncoder(config *Config) *Encoder + func (e *Encoder) Encode(data any) (string, error) + type FlattenedData struct + Columns []string + Rows [][]any