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

👋 Hello, I got the following error with this expression: `merge_request.state in ["merged", "closed"]` `reflect.Value.MapIndex: value of type gitlab.MergeRequestState is not assignable to type string` It would be very nice...

feature

This pull request to invoke the Deref function only when it's necessary for the function arguments.

We already have int() and float() builtins. Let's add others as well: uint8, byte, int64, float64, etc. And we can change compiler to compile int for IntegerNode, and remove this...

feature

Hey! Thanks for a ✨ fantastic ✨ project; very very cool to use and easy to extend - been quite a fun experience implementing it into [jippi/scm-engine](https://github.com/jippi/scm-engine)! I'm using mkdocs...

feature

TLDR The following program should be a valid expr: ``` let x = 42 let y = 42 x * y ``` It should work like Ruby, where everything is...

feature

For example, the following program can't be reused with different environments, because functions are bidden to the Env they were compiled with: ```go package main import ( "fmt" "github.com/expr-lang/expr" )...

feature
docs needed

The following program incorrectly assumes that the type of `$env` is `map[string]any`, although `args[0]` holds `Env`: ```go package main import ( "fmt" "time" "github.com/davecgh/go-spew/spew" "github.com/expr-lang/expr" ) type Env struct {...

bug
feature

Hi @antonmedv Golang 1.23 will support the iter package and define the type `Seq[V any]` as an iterator. The expr package supports numerous array functions. I believe iterators will be...

feature

```golang package main import ( "errors" "fmt" "reflect" "github.com/expr-lang/expr" ) type Number interface { int | uint | uint32 | int32 | uint64 | int64 | float32 | float64 }...

bug
research