aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-06-13 04:34:40 +0300
committerAlexander Kiryukhin <a.kiryukhin@mail.ru>2022-06-13 04:34:40 +0300
commitf20643d198dd9c8384b1f570367533464b287080 (patch)
treec62b3eb061e579a33e1874ce1a0f79f260c6d587
parent05626592208f56d88523887e2b80c0514f8ac210 (diff)
fix readme
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
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)