NewMatch creates a match instance.
(exprID int64)
| 296 | |
| 297 | // NewMatch creates a match instance. |
| 298 | func NewMatch(exprID int64) *Match { |
| 299 | return &Match{exprID: exprID} |
| 300 | } |
| 301 | |
| 302 | // Match declares a condition (defaults to true) as well as an output or a rule. |
| 303 | // Either the output or the rule field may be set, but not both. |