expr

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package expr defines the pluggable evaluator for expressions inside directives (e.g. the e in /*%if e*/). The built-in default lives in internal/exprlang; callers can supply their own via bisql.WithEvaluator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator interface {
	Eval(expression string, scope Scope) (any, error)
}

Evaluator evaluates an expression string against a scope.

type Scope

type Scope map[string]any

Scope is the set of variables visible during expression evaluation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL