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

Function NewInlineVariable

cel/inlining.go:55–57  ·  view source on GitHub ↗

NewInlineVariable declares a variable name to be replaced by a checked expression.

(name string, definition *Ast)

Source from the content-addressed store, hash-verified

53
54// NewInlineVariable declares a variable name to be replaced by a checked expression.
55func NewInlineVariable(name string, definition *Ast) *InlineVariable {
56 return NewInlineVariableWithAlias(name, name, definition)
57}
58
59// NewInlineVariableWithAlias declares a variable name to be replaced by a checked expression.
60// If the variable occurs more than once, the provided alias will be used to replace the expressions

Calls 1