Registry / utility / d5-tengo

d5-tengo

JSON →
library1.24.8gogounverified

A fast, embeddable scripting language written in Go, with a syntax similar to Go and support for dynamic types.

go get github.com/d5/tengo
INSTALL
IMPORT
SIG · D5-TENGO
D
d5-tengo
utilitygov1.24.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.

tengo
github.com/d5/tengo

Executes a simple Tengo script that computes 1+2 and prints the result.

package main import ( "fmt" "github.com/d5/tengo" ) 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
1.24.8latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

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