aboutsummaryrefslogtreecommitdiff
path: root/content/go/expression.md
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:21:22 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-11 01:21:22 +0300
commita79499018bed35bab05f888ce0103b37655e2852 (patch)
treed182886009aeafffb247a68ff425c740b3cb6a31 /content/go/expression.md
parent418eac8c0b978089644f48e27a0fbdd20e18ac91 (diff)
Auto-commit 2024-12-11
Diffstat (limited to 'content/go/expression.md')
-rw-r--r--content/go/expression.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/content/go/expression.md b/content/go/expression.md
new file mode 100644
index 0000000..c0e65bf
--- /dev/null
+++ b/content/go/expression.md
@@ -0,0 +1,23 @@
++++
+title = "Expression"
+name = "expression"
+repository = "https://git.neonxp.ru/expression.git"
+description = "Простой исполнитель выражений"
+gomod = true
++++
+
+Простой исполнитель выражений
+
+## Использование
+
+```go
+import "neonxp.ru/go/expression"
+...
+e := expression.New()
+result, err := e.Eval(`2 + 2`) // 4, nil
+...
+```
+
+## Умолчания
+
+Стандартные функции в /defaults.go, но можно определить свои