Expr
Evaluate small expressions inside a Go application using its own data.
expr-lang · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
In a new Go module, add github.com/expr-lang/expr at v1.18.1. Evaluate a fictional inventory rule against a local numeric input.
What we tested
v1.18.1. Evaluate a fictional inventory rule against a local numeric input. Evaluated the expected threshold rule as true for the synthetic count of seven.