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

Method NewObject

cel/macro.go:92–92  ·  view source on GitHub ↗

NewObject creates a CreateStruct instruction for an object with a given type name and optional set of field initializers.

(typeName string, fieldInits ...*exprpb.Expr_CreateStruct_Entry)

Source from the content-addressed store, hash-verified

90 // NewObject creates a CreateStruct instruction for an object with a given type name and
91 // optional set of field initializers.
92 NewObject(typeName string, fieldInits ...*exprpb.Expr_CreateStruct_Entry) *exprpb.Expr
93
94 // NewObjectFieldInit creates a new Object field initializer from the field name and value.
95 NewObjectFieldInit(field string, init *exprpb.Expr, optional bool) *exprpb.Expr_CreateStruct_Entry

Callers

nothing calls this directly

Implementers 1

adaptingHelpercel/macro.go

Calls

no outgoing calls

Tested by

no test coverage detected