Versions in this module Expand all Collapse all v1 v1.0.0 Jun 8, 2026 Changes in this version + var GlobalCache = &ScriptCache + func ExecuteFastHTTPResponse(ctx context.Context, node *Node, scope *Scope) error + func FastHTTPResponse(ctx context.Context, w http.ResponseWriter, status int, body interface{}) error + func FastVarSet(scope *Scope, name string, value interface{}) + func GetBuffer() []byte + func GetMap() map[string]interface + func PutArena(a *Arena) + func PutBuffer(b []byte) + func PutMap(m map[string]interface{}) + func PutScope(s *Scope) + func TryFastPath(ctx context.Context, node *Node, scope *Scope) (bool, error) + type Arena struct + func GetArena() *Arena + func NewArena(capacity int) *Arena + func (a *Arena) Alloc(n int) unsafe.Pointer + func (a *Arena) AllocBuffer(capacity int) []byte + func (a *Arena) AllocMap(capacity int) map[string]interface{} + func (a *Arena) AllocScope(parent *Scope) *Scope + func (a *Arena) CreateValuePointer(v interface{}) unsafe.Pointer + func (a *Arena) Reset() + func (a *Arena) Stats() (used int, total int) + type CachedScript struct + ModTime time.Time + Root *Node + type Diagnostic struct + Col int + Filename string + Line int + Message string + Slot string + Type string + func (d Diagnostic) Error() string + type Engine struct + Docs map[string]SlotMeta + Registry map[string]HandlerFunc + func NewEngine() *Engine + func (e *Engine) Execute(ctx context.Context, node *Node, scope *Scope) (err error) + func (e *Engine) GetDocumentation() map[string]SlotMeta + func (e *Engine) GetSortedSlotNames() []string + func (e *Engine) Register(name string, fn HandlerFunc, meta SlotMeta) + func (e *Engine) ResolveShorthandValue(n *Node, scope *Scope) interface{} + func (e *Engine) ValidateValueType(val interface{}, expectedType string, node *Node, slotName string) error + type HandlerFunc func(ctx context.Context, node *Node, scope *Scope) error + type InputMeta struct + Description string + Required bool + Type string + type Lexer struct + func NewLexer(input string) *Lexer + func (l *Lexer) GetLineInfo() (int, int) + func (l *Lexer) NextToken() Token + func (l *Lexer) PeekToken() Token + type Node struct + Children []*Node + Col int + Filename string + Line int + Name string + Parent *Node + Value interface{} + func LoadScript(path string) (*Node, error) + func ParseString(content string, filename string) (*Node, error) + type Scope struct + func GetScope() *Scope + func NewScope(parent *Scope) *Scope + func (s *Scope) Clone() *Scope + func (s *Scope) Delete(key string) + func (s *Scope) Get(key string) (interface{}, bool) + func (s *Scope) GetAll() map[string]interface{} + func (s *Scope) GetDefault(key string, defaultValue interface{}) interface{} + func (s *Scope) Reset() + func (s *Scope) Set(key string, val interface{}) + func (s *Scope) SetParent(parent *Scope) + func (s *Scope) ToMap() map[string]interface{} + type ScriptCache struct + func (c *ScriptCache) ClearHandlerCache() + type SlotMeta struct + Description string + Example string + Inputs map[string]InputMeta + RequiredBlocks []string + ValueType string + type Token struct + Column int + Line int + Literal string + Type TokenType + type TokenType string + const TokenColon + const TokenEOF + const TokenError + const TokenIdentifier + const TokenLBrace + const TokenRBrace + const TokenString