Versions in this module Expand all Collapse all v0 v0.7.1 Dec 4, 2021 v0.7.0 Dec 3, 2021 Changes in this version + const MATCHER_PARAMS_KEY + const MATCHER_TYPE_KEY + const SHORTHAND_MATCHER_PREFIX + var ErrInterfaceNil = errors.New("interface_nil") + var ErrMalformedMatcherType error = errors.New("malformed_matcher_type") + var ErrNotAMatcher error = errors.New("not_a_matcher") + var ErrTypeMismatch = errors.New("type_mismatch") + type Matcher interface + Match func(interface{}, string) (bool, []string, []string) + String func() string + func AndMatcherWithOptions(params interface{}) Matcher + func AnyMatcher() Matcher + func ArrayMatcher(i []interface{}) Matcher + func ArrayMatcherWithOptions(i interface{}) Matcher + func BoolMatcher(value bool) Matcher + func FloatMatcherWithOptions(value interface{}) Matcher + func GetMatcher(i interface{}) Matcher + func IntMatcherWithOptions(params interface{}) Matcher + func JSONMatcher(json map[string]interface{}) Matcher + func JSONMatcherWithOptions(i interface{}) Matcher + func LenMatcherWithOptions(params interface{}) Matcher + func NilMatcher() Matcher + func OrMatcherWithOptions(params interface{}) Matcher + func RangeMatcherWithOptions(value interface{}) Matcher + func RegexMatcherWithOptions(options interface{}) Matcher + func StringMatcher(value string) Matcher + func StringMatcherWithOptions(options interface{}) Matcher + func TypeArrayMatcherWithOptions(value interface{}) Matcher + func TypeFloatMatcherWithOptions(value interface{}) Matcher + func TypeIntMatcherWithOptions(value interface{}) Matcher + func TypeObjectMatcherWithOptions(value interface{}) Matcher + func TypeStringMatcherWithOptions(value interface{}) Matcher