Documentation
¶
Overview ¶
Package script defines a language-agnostic script execution interface. Implementations (e.g. script/jsrt for JavaScript, script/luart for Lua) provide concrete runtimes that satisfy the Runtime interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Env ¶
type Env struct {
// Config is script-level configuration, accessible as a global in the script.
Config map[string]any
// Bindings maps names to host objects injected into the script's global scope.
// Each value is typically a map[string]any of Go functions callable from the script.
Bindings map[string]any
}
Env carries per-execution configuration and host bindings.
Click to show internal directories.
Click to hide internal directories.