ExprMap creates a create struct Expr for a map.
(id int64, entries ...*exprpb.Expr_CreateStruct_Entry)
| 322 | |
| 323 | // ExprMap creates a create struct Expr for a map. |
| 324 | func ExprMap(id int64, entries ...*exprpb.Expr_CreateStruct_Entry) *exprpb.Expr { |
| 325 | return &exprpb.Expr{Id: id, ExprKind: &exprpb.Expr_StructExpr{ |
| 326 | StructExpr: &exprpb.Expr_CreateStruct{Entries: entries}}} |
| 327 | } |
| 328 | |
| 329 | // ExprType creates creates a create struct Expr for a message. |
| 330 | func ExprType(id int64, messageName string, |