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

Method NewStruct

parser/macro.go:215–215  ·  view source on GitHub ↗

NewStruct creates a struct literal expression with an optional set of field initializers.

(typeName string, fieldInits ...ast.EntryExpr)

Source from the content-addressed store, hash-verified

213
214 // NewStruct creates a struct literal expression with an optional set of field initializers.
215 NewStruct(typeName string, fieldInits ...ast.EntryExpr) ast.Expr
216
217 // NewStructField creates a new struct field initializer from the field name and value.
218 NewStructField(field string, init ast.Expr, optional bool) ast.EntryExpr

Callers 4

pruneMethod · 0.65
newObjectMethod · 0.65
CopyMethod · 0.65
NewStructMethod · 0.65

Implementers 1

exprHelperparser/helper.go

Calls

no outgoing calls

Tested by

no test coverage detected