Registry / utility / expr-lang-expr

expr-lang-expr

JSON →
library1.17.8gogounverified

An expression language and evaluation engine for Go, allowing safe and fast evaluation of user-defined expressions.

go get github.com/expr-lang/expr
INSTALL
IMPORT
SIG · EXPR-LANG-EXPR
E
expr-lang-expr
utilitygov1.17.8
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/expr-lang/expr

Compiles and evaluates a simple arithmetic expression.

package main import ( "fmt" "github.com/expr-lang/expr" ) func main() { program, _ := expr.Compile(`2 + 2`, expr.Env(nil)) output, _ := expr.Run(program, nil) fmt.Println(output) }
Debug
Known issues
breakingExpr v1 uses a different API than v0; ensure compatibility with existing code.
fix
Update imports and API calls to match v1 syntax.
affects: >=1.0.0
Upgrade
Version history
1.17.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
expr-lang-expr — go get expr-lang-expr · libregistry