Documentation
¶
Index ¶
- func Play(json, rule string) error
- func ReadFile(f string, t interface{}) error
- func ToStringValue(i interface{}) reflect.Value
- type Check
- func (t *Check) Equals(ruleValue, treeValue string) (bool, error)
- func (t *Check) Eval(r, s string) (bool, error)
- func (t *Check) Length(length string, array []interface{}) (bool, error)
- func (t *Check) Matches(r, s string) (bool, error)
- func (t *Check) Max(max string, val int) (bool, error)
- func (t *Check) Min(min string, val int) (bool, error)
- type TreeCheck
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToStringValue ¶
ToStringValue turns the input interface into a Value based on String
Types ¶
type Check ¶
type Check struct{}
Check is the class providing the methods for the checks Each method must return a (bool, error) pair
Click to show internal directories.
Click to hide internal directories.