expr
expr copied to clipboard
Expression language and expression evaluation for Go
Lets add `expr.NilSafe()`. err: order is potentialy nil | order.Amount > 500 or product.Category = xyz |......^ And users can ckange expression to something like this: order != nil ?...
After a long debugging session I figured out that the checker.Check modifies the ast state by setting the nodeType. In my patcher I don't want my users to have to...
Closes #362
I noticed that cel-go supports the b'' format for representing bytes in expressions. I noticed that cel-go supports the b'' format for representing bytes in expressions. Why doesn't expr support...
The amount of OpDeref produced by the compiler can be reduced by introducing intermediate types in binary nodes. Examples of expressions can be found in #428, #427
If you attempt to overload an operator and the implementation of the function is defined using `expr.Function` as opposed to having the function in the env, then it fails to...
Array comparison behavior is changed from v1.10.0. e.g. ```golang func main() { env := map[string]interface{}{ "names": []string{"A", "B"}, } code := `["A", "B"] == names` program, _ := expr.Compile(code, expr.Env(env))...
Add support for an optional timezone argument to now(). Formatting the returned time will use the specified timezone.
Hey @antonmedv. Thanks for this amazing library, it is a lot of fun to work with. After deciding to use it for a new feature with dynamic configuration, we unfortunately...
[Problem Description] We are consuming `github.com/expr-lang/expr v1.15.7`, which is latest as of date. This package is scanned for security vulnerabilities and EOLs by **blackduck scanner** at our source. The blackduck...