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

Function ExprList

test/expr.go:317–321  ·  view source on GitHub ↗

ExprList creates a create list Expr.

(id int64, elements ...*exprpb.Expr)

Source from the content-addressed store, hash-verified

315
316// ExprList creates a create list Expr.
317func ExprList(id int64, elements ...*exprpb.Expr) *exprpb.Expr {
318 return &exprpb.Expr{Id: id,
319 ExprKind: &exprpb.Expr_ListExpr{
320 ListExpr: &exprpb.Expr_CreateList{Elements: elements}}}
321}
322
323// ExprMap creates a create struct Expr for a map.
324func ExprMap(id int64, entries ...*exprpb.Expr_CreateStruct_Entry) *exprpb.Expr {

Callers 1

expr.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected