Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NumberNormalizer = cmp.FilterValues(func(x, y interface{}) bool { return IsNumber(x) || IsNumber(y) }, cmp.Transformer("NormalizeNumbers", func(in interface{}) string { return fmt.Sprintf("%v", in) }))
NumberNormalizer normalizes different number types (e.g. float64 vs int64) by converting them to their string representation
Functions ¶
func ContainsString ¶
func DefaultContext ¶
func DefaultContext() (context.Context, context.CancelFunc)
func Difference ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.