package
0.0.0-20220831181609-9c88ebf2c706
Repository: https://github.com/adamcolton/geom.git
Documentation: pkg.go.dev
# Functions
LenMismatch returns an ErrLenMismatch.
NewLenMismatch will return a nil error if expected and actual are equal and an instance of LenMismatch if they are different.
NewNotEqual will return nil if areEqual is true and will create an instance of ErrNotEqual if it is false.
NewSliceErrs creates an instance of SliceErrs by calling the provided func for every value up to Min(lnExpected, lnActual).
NewTypeMismatch will return nil if the given types are the same and returns ErrTypeMismatch if they do not.
NotEqual creates an instance of ErrNotEqual.
TypeMismatch creates an instance of ErrTypeMismatch.
# Variables
MaxSliceErrs limits the number of errors that will be reported by SliceErrs.Error.
# Structs
ErrLenMismatch represents a mis-matched length.
ErrNotEqual is used to indicate two values that were expected to be equal.
ErrTypeMismatch indicates that two types that were expected to be equal were not.
SliceErrRecord represents an error comparing two slices.
# Type aliases
SliceErrs collects SliceErrRecord and treats them as a single error.