Documentation
¶
Index ¶
- Constants
- Variables
- type Matcher
- 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
Constants ¶
View Source
const ( MATCHER_TYPE_KEY = "$$matcher_type$$" MATCHER_PARAMS_KEY = "$$matcher_params$$" SHORTHAND_MATCHER_PREFIX = "$$shorthand_matcher$$" )
Variables ¶
View Source
var ( ErrTypeMismatch = errors.New("type_mismatch") ErrInterfaceNil = errors.New("interface_nil") )
Functions ¶
This section is empty.
Types ¶
type Matcher ¶
func AndMatcherWithOptions ¶
func AndMatcherWithOptions(params interface{}) Matcher
func AnyMatcher ¶
func AnyMatcher() Matcher
func ArrayMatcher ¶
func ArrayMatcher(i []interface{}) Matcher
func ArrayMatcherWithOptions ¶
func ArrayMatcherWithOptions(i interface{}) Matcher
func BoolMatcher ¶
func FloatMatcherWithOptions ¶
func FloatMatcherWithOptions(value interface{}) Matcher
func GetMatcher ¶
func GetMatcher(i interface{}) Matcher
func IntMatcherWithOptions ¶
func IntMatcherWithOptions(params interface{}) Matcher
func JSONMatcher ¶
func JSONMatcherWithOptions ¶
func JSONMatcherWithOptions(i interface{}) Matcher
func LenMatcherWithOptions ¶
func LenMatcherWithOptions(params interface{}) Matcher
func NilMatcher ¶
func NilMatcher() Matcher
func OrMatcherWithOptions ¶
func OrMatcherWithOptions(params interface{}) Matcher
func RangeMatcherWithOptions ¶
func RangeMatcherWithOptions(value interface{}) Matcher
func RegexMatcherWithOptions ¶
func RegexMatcherWithOptions(options interface{}) Matcher
func StringMatcher ¶
func StringMatcherWithOptions ¶
func StringMatcherWithOptions(options interface{}) Matcher
func TypeArrayMatcherWithOptions ¶
func TypeArrayMatcherWithOptions(value interface{}) Matcher
func TypeFloatMatcherWithOptions ¶
func TypeFloatMatcherWithOptions(value interface{}) Matcher
func TypeIntMatcherWithOptions ¶
func TypeIntMatcherWithOptions(value interface{}) Matcher
func TypeObjectMatcherWithOptions ¶
func TypeObjectMatcherWithOptions(value interface{}) Matcher
func TypeStringMatcherWithOptions ¶
func TypeStringMatcherWithOptions(value interface{}) Matcher
Source Files
¶
- and_matcher.go
- any_matcher.go
- array_matcher.go
- bool_matcher.go
- extractor.go
- float_matcher.go
- int_matcher.go
- json_matcher.go
- len_matcher.go
- matcher.go
- nil_matcher.go
- or_matcher.go
- range_matcher.go
- regex_matcher.go
- string_matcher.go
- type_array.go
- type_float.go
- type_int.go
- type_object.go
- type_string.go
Click to show internal directories.
Click to hide internal directories.