Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nikunjy authored Mar 4, 2021
1 parent 2c6e172 commit 4b5e160
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Here are some examples:
parser.Evaluate("x < 1", map[string]interface{}{"x": 1})
parser.Evaluate("x gt 1", map[string]interface{}{"x": 1})
parser.Evaluate("x.a == 1 and x.b.c <= 2", obj{
parser.Evaluate("x.a == 1 and x.b.c <= 2", map[string]interface{}{
"x": map[string]interface{}{
"a": 1,
"b": map[string]interface{}{
Expand All @@ -23,11 +23,11 @@ Here are some examples:
})
parser.Evaluate("y == 4 and (x > 1)", obj{"x": 1})
parser.Evaluate("y == 4 and (x > 1)", map[string]interface{}{"x": 1})
parser.Evaluate("y == 4 and (x IN [1,2,3])", obj{"x": 1})
parser.Evaluate("y == 4 and (x IN [1,2,3])", map[string]interface{}{"x": 1})
parser.Evaluate("y == 4 and (x eq 1.2.3)", obj{"x": "1.2.3"})
parser.Evaluate("y == 4 and (x eq 1.2.3)", map[string]interface{}{"x": "1.2.3"})
```

Expand Down

0 comments on commit 4b5e160

Please sign in to comment.