diff --git a/README.md b/README.md index c1d900e..09e88f6 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,14 @@ import ( ) func main(){ + + expr := `foo + 1 > bar` param := map[string]interface{}{ "foo": 5, "bar": 6, } + res, err := Do(context.Background(), expr, param) if err != nil { panic(err) diff --git a/kit/rule/README.md b/kit/rule/README.md index e2c6783..93e1e0c 100644 --- a/kit/rule/README.md +++ b/kit/rule/README.md @@ -8,10 +8,13 @@ import ( func main(){ + expr := `foo + 1 > bar` + param := map[string]interface{}{ "foo": 5, "bar": 6, } + res, err := Do(context.Background(), expr, param) if err != nil { panic(err)