Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
Run compares a list of terms against a target. Target can be anything. Terms are described by the grammar {term} = {path}{comparison_operator}{value} Where {path} is a "/" separated list of identifiers {comparison_operator} is "=" {value} is a string {path} identifiers can be either an integer to index slices, or a string for named fields. Example term: "0/Name=Ireland" where the target is a slice of structs that have a Name field.
Builtin keywords are supported for specific comparisons: "{type}" will compare against the type, i.e.
"{type}=Event" will be true if the type is named Event.
"{count}" will compare against the length of slices and maps, i.e.
"{count}=2" will be true if the value is a slice with length of 2.
Types ¶
Click to show internal directories.
Click to hide internal directories.