expr
expr copied to clipboard
Expression language and expression evaluation for Go
filter & map returns []any type. In nature we can keep actual type and implement nature.Elem() method to get correct underlying type. Those type checker error cases should be able...
# What Using the Playground with the newest version 1.16 I expected `Posts[10]?.Title` to result in undefined whereas it throws ``` reflect: slice index out of range (3:6) | Posts[10]?.Title...
We'd like to inject effectively an entire package into our Expr environment with a dozen or so methods. We were hoping to be able to effectively treat it like Go's...
For my domain I need to use raw `map[string]interface{}` sometimes. But maps have finite number of keys and each key always has specific type Is there a way to say...
I'm adding support for "github.com/shopspring/decimal" to my project that makes use of "expr/patcher/value" and ran into an issue where cpu usage spikes to 100% and expr gets stuck compiling the...
OSS-Fuzz has found a bug in this project. Please see https://oss-fuzz.com/testcase?key=6221316932829184 for details and reproducers. This issue is mirrored from https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68580 and will auto-close if the status changes there. If...
When running the following expression, it returns in the error `interface conversion: interface {} is nil, not string (1:9)` We would like to handle this gracefully, as the `query` parameter...