Documentation
¶
Index ¶
- func Flatten(v any) map[string]any
- func FlattenJSON(data []byte) (map[string]any, error)
- func FlattenYAML(data []byte) (map[string]any, error)
- func LoadAndFlatten(path string) (map[string]any, error)
- func MapDiff(before, after map[string]any) ([]PathChange, []PathChange, []PathChange)
- type PathChange
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlattenJSON ¶
FlattenJSON decodes raw JSON bytes and flattens into dot-paths.
func FlattenYAML ¶
FlattenYAML decodes YAML bytes and flattens into dot-paths.
func LoadAndFlatten ¶
LoadAndFlatten loads a file with extension-based decoding (json|yaml|yml).
func MapDiff ¶
func MapDiff(before, after map[string]any) ([]PathChange, []PathChange, []PathChange)
MapDiff computes added/removed/updated by comparing two flattened maps (path → value). Returns three sorted slices.
Types ¶
type PathChange ¶
Click to show internal directories.
Click to hide internal directories.