Registry / utility / d5-tengo-v2

d5-tengo-v2

JSON →
library2.17.0gogounverified

Tengo is a small, dynamic, fast scripting language for Go.

go get github.com/d5/tengo/v2
INSTALL
IMPORT
SIG · D5-TENGO-V2
D
d5-tengo-v2
utilitygov2.17.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.

tengo
✓ github.com/d5/tengo/v2

Runs a simple Tengo script and prints the result.

package main import ( "fmt" "github.com/d5/tengo/v2" ) func main() { script := tengo.NewScript([]byte(`a := 1 + 2`)) compiled, err := script.Run() if err != nil { panic(err) } fmt.Println(compiled.Get("a")) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
26
Resources
d5-tengo-v2 — go get d5-tengo-v2 · libregistry