Create README.md
This commit is contained in:
parent
cc4c01c69c
commit
c99ce12f47
1 changed files with 18 additions and 0 deletions
18
README.md
Normal file
18
README.md
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
# expression
|
||||||
|
|
||||||
|
Another expression parser and executor
|
||||||
|
Better version of https://github.com/neonxp/lexpr
|
||||||
|
|
||||||
|
## usage
|
||||||
|
|
||||||
|
```go
|
||||||
|
import "go.neonxp.dev/expression"
|
||||||
|
...
|
||||||
|
e := expression.New()
|
||||||
|
result, err := e.Eval(`2 + 2`) // 4, nil
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
## defaults
|
||||||
|
|
||||||
|
Default operators and functions: [/defaults.go](/defaults.go)
|
Loading…
Reference in a new issue