Versions in this module Expand all Collapse all v0 v0.2.3 Mar 19, 2026 Changes in this version + const DefaultRootName + const MapNamePlaceholder + const TagDescription + const TagFile + const TagLabel + const TagLabelAllowEmpty + const TagLabelSliceAsStruct + func AddMetadata(element interface{}, node *Node, opts MetadataOpts) error + func Decode(labels map[string]string, element interface{}, rootName string, ...) error + func Encode(element interface{}, rootName string) (map[string]string, error) + func EncodeNode(node *Node) map[string]string + func Fill(element interface{}, node *Node, opts FillerOpts) error + func IsExported(f reflect.StructField) bool + type EncoderToNodeOpts struct + AllowSliceAsStruct bool + OmitEmpty bool + TagName string + type FillerOpts struct + AllowSliceAsStruct bool + RawSliceSeparator string + type Flat struct + Default string + Description string + Name string + func EncodeToFlat(element interface{}, node *Node, opts FlatOpts) ([]Flat, error) + type FlatOpts struct + Case string + Separator string + SkipRoot bool + TagName string + type MetadataOpts struct + AllowSliceAsStruct bool + TagName string + type Node struct + Children []*Node + Description string + Disabled bool + FieldName string + Kind reflect.Kind + Name string + RawValue interface{} + Tag reflect.StructTag + Value string + func DecodeToNode(labels map[string]string, rootName string, filters ...string) (*Node, error) + func EncodeToNode(element interface{}, rootName string, opts EncoderToNodeOpts) (*Node, error)