MCPcopy Create free account
hub / github.com/cel-expr/cel-go / NewMatch

Function NewMatch

policy/parser.go:340–342  ·  view source on GitHub ↗

NewMatch creates a match instance.

(exprID int64)

Source from the content-addressed store, hash-verified

338
339// NewMatch creates a match instance.
340func NewMatch(exprID int64) *Match {
341 return &Match{exprID: exprID}
342}
343
344// Match declares a condition (defaults to true) as well as an output or a rule.
345// Either the output or the rule field may be set, but not both.

Callers 1

NewMatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected