Documentation ¶
Overview ¶
Package reflect contains reflection tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepDerivative ¶
func DeepDerivative(a interface{}, b interface{}) bool
DeepDerivative is similar to DeepEqual except that unset fields in a1 are ignored (not compared). This allows us to focus on the fields that matter to the semantic comparison.
The unset fields include a nil pointer and an empty string. No equality functions are used.
Types ¶
type Equalities ¶
type Equalities struct {
reflect.Equalities
}
Equalities is a wrapper around Equalities. The functionality comes from Kubernetes which itself forks from the official go std library.
func EqualitiesOrDie ¶
func EqualitiesOrDie(funcs ...interface{}) Equalities
EqualitiesOrDie panics on errors for convience.
Click to show internal directories.
Click to hide internal directories.