From f20643d198dd9c8384b1f570367533464b287080 Mon Sep 17 00:00:00 2001 From: Alexander Kiryukhin Date: Mon, 13 Jun 2022 04:34:40 +0300 Subject: [PATCH] fix readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8fa7287..d1030a8 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ This library can evaluate any types of expressions: math expression, logic expre ## Usage +Full example: [/example/main.go](/example/main.go) + ```go ctx := context.Background() l := lexpr.New(lexpr.WithDefaults()) @@ -83,7 +85,7 @@ result52, err := l.OneResult(ctx, `10 >= 5 || 10 <= 5`) if err != nil { log.Fatal(err) } -log.Println("Result 5-2:", result52) // Output: 1 +log.Println("Result 5-2:", result52) // Output: 0 result53, err := l.OneResult(ctx, `10 >= 5 && 10 <= 5`) if err != nil { log.Fatal(err)