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.
Types ¶
type Diff ¶
type Diff struct {
Added, Removed, Modified map[*Path]interface{}
// contains filtered or unexported fields
}
Diff represents a change in a struct.
type MapKey ¶
type MapKey struct {
Key interface{}
}
MapKey is a path element representing a key of a map.
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 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.