Documentation ¶
Overview ¶
Package dcomparison provides a solution for deeply comparing two maps, including their nested maps and slices. It is designed to identify differences between two maps that can contain a variety of data types, such as strings, integers, other maps, and slices.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectDiff ¶
ObjectDiff stores the path to a value and the differing values from two maps.
type ObjectDiffs ¶
type ObjectDiffs []ObjectDiff
ObjectDiffs is a slice of ObjectDiff
func MapsDiff ¶
func MapsDiff(path string, map1, map2 map[string]any) ObjectDiffs
MapsDiff compares two maps and returns a slice of ObjectDiff with the differences.
func (*ObjectDiffs) Append ¶
func (o *ObjectDiffs) Append(diff ObjectDiff)
Click to show internal directories.
Click to hide internal directories.