Versions in this module Expand all Collapse all v1 v1.0.0 Nov 5, 2019 Changes in this version + func AssertRule(entity interface{}, rule Rule) (valid bool, value interface{}, err error) + type Operator string + const OpEqual + const OpGreater + const OpGreaterEqual + const OpLower + const OpLowerEqual + const OpNotEqual + type Rule struct + Condition Operator + ConditionValue interface{} + Name string + Property string + ReturnValueNegative interface{} + ReturnValuePositive interface{}