ExprEntry creates a map entry for a create struct Expr.
(id int64, key *exprpb.Expr, value *exprpb.Expr)
| 336 | |
| 337 | // ExprEntry creates a map entry for a create struct Expr. |
| 338 | func ExprEntry(id int64, key *exprpb.Expr, |
| 339 | value *exprpb.Expr) *exprpb.Expr_CreateStruct_Entry { |
| 340 | return &exprpb.Expr_CreateStruct_Entry{Id: id, |
| 341 | KeyKind: &exprpb.Expr_CreateStruct_Entry_MapKey{MapKey: key}, |
| 342 | Value: value} |
| 343 | } |
| 344 | |
| 345 | // ExprField creates a field entry for a create struct Expr. |
| 346 | func ExprField(id int64, field string, |