We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0223e4d commit bc1f8acCopy full SHA for bc1f8ac
README.md
@@ -30,10 +30,10 @@ product.Stock < 15
30
* Seamless integration with Go (no need to redefine types)
31
* Static typing ([example](https://godoc.org/github.com/antonmedv/expr#example-Env)).
32
```go
33
- out, err := expr.Eval(`"hello" + 10`)
+ out, err := expr.Compile(`name + age`)
34
// err: invalid operation + (mismatched types string and int)
35
- // | "hello" + 10
36
- // | ........^
+ // | name + age
+ // | .....^
37
```
38
* User-friendly error messages.
39
* Reasonable set of basic operators.
0 commit comments