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

Function ExprEntry

test/expr.go:338–343  ·  view source on GitHub ↗

ExprEntry creates a map entry for a create struct Expr.

(id int64, key *exprpb.Expr,
	value *exprpb.Expr)

Source from the content-addressed store, hash-verified

336
337// ExprEntry creates a map entry for a create struct Expr.
338func ExprEntry(id int64, key *exprpb.Expr,
339 value *exprpb.Expr) *exprpb.Expr_CreateStruct_Entry {
340 return &exprpb.Expr_CreateStruct_Entry{Id: id,
341 KeyKind: &exprpb.Expr_CreateStruct_Entry_MapKey{MapKey: key},
342 Value: value}
343}
344
345// ExprField creates a field entry for a create struct Expr.
346func ExprField(id int64, field string,

Callers 1

expr.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected