expr icon indicating copy to clipboard operation
expr copied to clipboard

Expression language and expression evaluation for Go

Results 146 expr issues
Sort by recently updated
recently updated
newest added

`some(array,n,predicate) ` Return true immediately when match n item , otherwise return false `filterN(array,n,predicate)` Return first n matches immediately, or all matches if matches less than n. `largeArray|some(2,#>100) ` `largeArray|filterN(n,#>100)...

feature
docs needed

I want to perform some dry-run calculations with dirty custom functions. Sometimes i don't know the value that will be in real run, but i know that this value will...

research

When you try to compare floating number with floating literal like `Number == 12.34`, it returns false even when `Number` is 12.34 Below is code to reproduce https://go.dev/play/p/FFgPkXjIURm ``` package...

bug

Now there are many defined operators and functions, does it support user-defined comparison operations?

docs needed

I am evaluating the usage of `expr` for a work project. We are experimenting with usage of expr to filter resources based on certain content policy definitions. For example, we...

I'm considering using `expr` at DAYJOB and would like to not expose the `$env` var using that name. We're planning on using `expr` as a DSL and the domain has...

feature

I have read the document several times but still can't understand where the usage issues are. Could you please help take a look? https://go.dev/play/p/LwYtRm2NuXM ![Image](https://github.com/user-attachments/assets/0a43fad7-24da-42d1-a9a9-fda95ae0b34e)

docs needed

I've had to write this instead which is a bit wild... what am I doing wrong? ``` func ToStringSlice(input []interface{}) ([]string, error) { out := make([]string, len(input)) for i, val...

``` map(filter(Imp.GetTorrents(nil), .Name contains `The.Simpsons`), .Hash) | Imp.RemoveTags(`yamz`)","error":"unexpected token Operator(\".\") (1:78)\n | map(filter(Imp.GetTorrents(nil), .Name contains `The.Clam`), .Hash) | Imp.RemoveTags(`yamz`) ``` ``` {"level":"trace","program":"test-program","query":"map(filter(Imp.GetTorrents(nil), .Name contains `The.Clam`), .Hash) | Imp.RemoveTags(`yamz`)","error":"unexpected token Operator(\".\")...

feature
research