Documentation ¶ Index ¶ func Compile(source string) (cel.Program, error) func Eval[ReturnType any](ctx context.Context, prg cel.Program, scope map[string]any) (result ReturnType, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Compile ¶ func Compile(source string) (cel.Program, error) Compile takes a CEL expression and compiles it with the standard environment. We don't have anything in the standard environment just yet, but this ensures we instantiate the CEL VM consistently, wherever we might use it. func Eval ¶ func Eval[ReturnType any](ctx context.Context, prg cel.Program, scope map[string]any) (result ReturnType, err error) Eval evaluates the given program against the scope, returning a value that matches the type requested via the generic ReturnType parameter. Types ¶ This section is empty. Source Files ¶ View all Source files expr.go Click to show internal directories. Click to hide internal directories.