Skip to content

Commit baa7571

Browse files
authored
Update README.md
1 parent e948b5b commit baa7571

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ Inspired by
2424
## Features
2525

2626
* Works with any valid Go object (structs, maps, etc)
27-
* Strict mode with type checks
27+
* Static and dynamic typing
28+
```go
29+
p, err := expr.Parse("groups[0].Title + user.Age", expr.Define("segments", []Segment{}), expr.Define("user", User{}))
30+
// err: invalid operation: groups[0].Name + user.Age (mismatched types string and int)
31+
```
2832
* User-friendly error messages
2933
```
3034
unclosed "("

0 commit comments

Comments
 (0)