NewStruct creates a struct literal expression with an optional set of field initializers.
(typeName string, fieldInits ...ast.EntryExpr)
| 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 |