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

Function ExprField

test/expr.go:346–351  ·  view source on GitHub ↗

ExprField creates a field entry for a create struct Expr.

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

Source from the content-addressed store, hash-verified

344
345// ExprField creates a field entry for a create struct Expr.
346func ExprField(id int64, field string,
347 value *exprpb.Expr) *exprpb.Expr_CreateStruct_Entry {
348 return &exprpb.Expr_CreateStruct_Entry{Id: id,
349 KeyKind: &exprpb.Expr_CreateStruct_Entry_FieldKey{FieldKey: field},
350 Value: value}
351}
352
353// ExprComprehension returns a comprehension Expr.
354func ExprComprehension(id int64,

Callers 1

expr.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected