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

After making some truly awesome progress implementing a scripting language, I ran into an issue where operator override does not work when using an interface that represent an `IdentifierNode` and...

I want to implement an expression that returns slice of string. expr properly gives `[]string` when it's immediate value eg `["a"]` but when I do something like `[str]` it gives...

Add support for tags `expr:"..."` for names aliases. ```go type Env struct { Value int `expr:"value"` } ``` And now it's will be possible to use `value` instead of `Value`...

enhancement

Hi. Such a cool project, bravo! I wrote a small test app using the '+' operator over arrays of integers and arrays of floats. Since I could not use the...

I have deep objects which may sometimes have nil on the chain. In those cases, without conditional nil operator it becomes very difficult to write expressions. It could be great...

enhancement

The documentation doesn't say much about arithmetic conversion (or I couldn't find it). I wrote a little test program: Type tester ```golang package main import ( "fmt" "log" "github.com/antonmedv/expr" )...

I am not too sure if that IS the right way of doing things, but looks right.

Hi, Thanks for an awesome library ! Quick question regarding this code, for example. ``` type Tweet struct { Len int } type Env struct { Tweets []Tweet } func...

Great library! I have an expression like the following: ```go data.objectId == 0x6E && data.subObject == 0x0 && data.bitNumber == 1 && data.state == 1 ``` And it generates a...