Registry / utility / antonmedv-expr

antonmedv-expr

JSON →
library1.16.0gogounverified

A Go expression language for evaluating expressions with a simple syntax.

go get github.com/antonmedv/expr
INSTALL
IMPORT
SIG · ANTONMEDV-EXPR
A
antonmedv-expr
utilitygov1.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

expr
✓ github.com/antonmedv/expr

Compiles and runs a simple arithmetic expression.

package main import ( "fmt" "github.com/antonmedv/expr" ) func main() { program, _ := expr.Compile("2 + 2", expr.Env(nil)) output, _ := expr.Run(program, nil) fmt.Println(output) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.16.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
OpenAI (training)
2
Resources
antonmedv-expr — go get antonmedv-expr · libregistry