Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrSample = errors.New("sample") CompareErrorsIs = goCmp.Comparer(func(e1, e2 error) bool { if e1 == nil || e2 == nil { return e1 == nil && e2 == nil } else { return errors.Is(e1, e2) || errors.Is(e2, e1) } }) CompareErrorsAs = goCmp.Comparer(func(i, j error) bool { e2Any := any(j) return errors.As(i, &e2Any) }) CompareReflectStructField = goCmp.Comparer(func(i, j reflect.StructField) bool { return i.Name == j.Name && i.PkgPath == j.PkgPath }) CompareReflectValue = goCmp.Comparer(func(i, j reflect.Value) bool { return i.Interface() == j.Interface() }) )
Functions ¶
This section is empty.
Types ¶
type Map ¶
Click to show internal directories.
Click to hide internal directories.