Documentation ¶
Index ¶
- type ExpEval
- func (e *ExpEval) Eval(expr string, values map[string]interface{}) (interface{}, error)
- func (e *ExpEval) EvalToBool(expr string, values map[string]interface{}) (bool, error)
- func (e *ExpEval) EvalToFloat64(expr string, values map[string]interface{}) (float64, error)
- func (e *ExpEval) EvalToInt64(expr string, values map[string]interface{}) (int64, error)
- func (e *ExpEval) EvalToString(expr string, values map[string]interface{}) (string, error)
- func (e *ExpEval) EvalToUint64(expr string, values map[string]interface{}) (uint64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpEval ¶
type ExpEval struct {
// contains filtered or unexported fields
}
A ExpEval is expression evaluation
func NewExpEval ¶
NewExpEval returns the *expeval.ExpEval
func (*ExpEval) EvalToBool ¶
EvalToBool returns the evaluated value(bool)
func (*ExpEval) EvalToFloat64 ¶
EvalToFloat64 returns the evaluated value(float64)
func (*ExpEval) EvalToInt64 ¶
EvalToInt64 returns the evaluated value(int64)
func (*ExpEval) EvalToString ¶
EvalToString returns the evaluated value(string)
Click to show internal directories.
Click to hide internal directories.