Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Condition ¶
type Condition struct { Predicate string `json:"predicate"` Branches []*Branch `json:"branches"` // contains filtered or unexported fields }
func NewCondition ¶
NewCondition returns a new Condition node. The value must be binary expression. If value accepts unary expression, it'd be ambiguous for a value=`X`. Because the value can be a boolean expression `X` (equivalent to `X == true`) or a string outcome `X`.
func (*Condition) Initialize ¶
type Outcome ¶
type Outcome struct {
Value interface{} `json:"outcome"`
}
func NewOutcome ¶
NewOutcome returns a new Outcome node. The value must be integer literal, float literal, string literal (with or without "").
Click to show internal directories.
Click to hide internal directories.