workflowexpr

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EvaluateWhen

func EvaluateWhen(expr string, in Inputs) (bool, error)

Types

type Contract

type Contract struct {
	Language   string
	Namespaces []string
}

func PublicContract

func PublicContract() Contract

type Inputs

type Inputs struct {
	Vars    map[string]any
	Runtime map[string]any
	Context map[string]any
}

type Program

type Program struct {
	// contains filtered or unexported fields
}

func CompileWhen

func CompileWhen(expr string) (Program, error)

func (Program) Eval

func (p Program) Eval(in Inputs) (bool, error)

Jump to

Keyboard shortcuts

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