Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DiffType ¶
type DiffType string
DiffType represents a difference type
const DiffTypeDifferent DiffType = "different"
DiffTypeDifferent represents a difference type that represents a difference between two fields
const DiffTypeMissing DiffType = "missing"
DiffTypeMissing is a difference type that represents a missing field
type MapDiff ¶
type MapDiff struct {
// contains filtered or unexported fields
}
MapDiff defines a structure that performs shallow difference checks between one main map and other maps
func NewMapDiff ¶
NewMapDiff creates an new instance of MapDiff to perform difference checks between a map type and one or more others
func (*MapDiff) Diff ¶
Diff checks the main map against the other map(s) and returns the difference for each map. If there is no difference between the main map and a map being compared, nil is included in the corresponding index of the checked map.
func (*MapDiff) Difference ¶
Difference checks whether the main map is different from the other maps