Discover Packages
github.com/wloophq/wloop
internal
intent
expr
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Oct 24, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 15
Opens a new window with list of imports.
Imported by: 0 modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package expr compiles and evaluates the predicates of intent and workflow
manifests: CEL expressions (cel-go) over typed facts, checked at load.
CompileWorkflow compiles a workflow's `when` over env (one unit slot,
trigger.* and config.*) plus now, the evaluation's time.
type Facts interface{ Get(field string ) any }
Facts resolves a dotted field; the value's Go type matches the Env (bool,
int, string, []string, time.Duration, time.Time).
Compile type-checks src against env; it returns an *Error on failure, and an empty or blank src is an error.
Eval evaluates the predicate; a nil fact reads as its type's zero value and
a runtime error, such as a fact of another Go type, reads as false.
Reads are the fields the predicate names, sorted.
const (
Bool Type = iota + 1
Int
String
List
Duration
Time
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.