Documentation
¶
Index ¶
Constants ¶
View Source
const ( // UnsafeDisabled is a build-time constant which specifies whether or // not access to the unsafe package is available. UnsafeDisabled = false )
Variables ¶
This section is empty.
Functions ¶
func PrettyDiff ¶
PrettyDiff does a deep comparison and returns the nicely formated results. See DeepDiff for more details.
Types ¶
type BytesDifferent ¶
type BytesDifferent struct {
From, To interface{}
}
type Diff ¶
type Diff struct {
Added, Removed, Modified map[*Path]interface{}
// contains filtered or unexported fields
}
Diff represents a change in a struct.
type IgnoreFieldOption ¶
type IgnoreFieldOption struct {
Field string
}
IgnoreFieldOption is an option for specifying a field that does not diff
type MapKey ¶
type MapKey struct {
Key interface{}
}
MapKey is a path element representing a key of a map.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option is an option to specify in diff
func IgnoreStructField ¶
IgnoreStructField return an option of IgnoreFieldOption
type PathNode ¶
type PathNode interface {
String() string
}
PathNode represents one step in the path.
type SliceIndex ¶
type SliceIndex int
SliceIndex is a path element representing a index of a slice.
func (SliceIndex) String ¶
func (n SliceIndex) String() string
type SliceWeakEmptyOption ¶
type SliceWeakEmptyOption struct{}
type StructField ¶
type StructField string
StructField is a path element representing a field of a struct.
func (StructField) String ¶
func (n StructField) String() string
Click to show internal directories.
Click to hide internal directories.