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

Function ExprSelect

test/expr.go:262–269  ·  view source on GitHub ↗

ExprSelect creates a select Expr.

(id int64, operand *exprpb.Expr, field string)

Source from the content-addressed store, hash-verified

260
261// ExprSelect creates a select Expr.
262func ExprSelect(id int64, operand *exprpb.Expr, field string) *exprpb.Expr {
263 return &exprpb.Expr{Id: id,
264 ExprKind: &exprpb.Expr_SelectExpr{
265 SelectExpr: &exprpb.Expr_Select{
266 Operand: operand,
267 Field: field,
268 TestOnly: false}}}
269}
270
271// ExprLiteral creates a literal (constant) Expr.
272func ExprLiteral(id int64, value any) *exprpb.Expr {

Callers 1

expr.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected