Versions in this module Expand all Collapse all v1 v1.0.1 Aug 8, 2022 v1.0.0 Aug 4, 2022 Changes in this version + var TypeNames = map[Type]string + type Comparator interface + Compare func(lhs, rhs float64) bool + Operator func() Operator + type Eq struct + func (c Eq) Compare(lhs, rhs float64) bool + func (c Eq) Operator() Operator + type Expression struct + Cmp Comparator + RHS float64 + Type Type + func ParseExpression(expression string) (*Expression, error) + func (e Expression) EvaluateSuccess(success, total uint64) (*Result, error) + func (e Expression) String() string + type Ge struct + func (c Ge) Compare(lhs, rhs float64) bool + func (c Ge) Operator() Operator + type Gt struct + func (c Gt) Compare(lhs, rhs float64) bool + func (c Gt) Operator() Operator + type Le struct + func (c Le) Compare(lhs, rhs float64) bool + func (c Le) Operator() Operator + type Lt struct + func (c Lt) Compare(lhs, rhs float64) bool + func (c Lt) Operator() Operator + type Operator string + const ExprEq + const ExprGe + const ExprGt + const ExprLe + const ExprLt + type Result struct + Expr string + LHS string + Op Operator + Pass bool + RHS string + Type Type + type Type uint16 + const TypePercentage + const TypeValue + func (t Type) String() string