Closed anoop-b closed 4 years ago
How to pack nested interfaces for data payload? for instance:
data := map[string]interface{}{ "name": "Gaurav Kumar", "email": "gaurav.kumar@example.com", "contact": "9123456780", "fail_existing": "1", "notes": { "note_key_1": "Tea. Earl grey. Hot.", "note_key_2": "Tea. Earl grey. Decaf.", }, }
This trows the following error: invalid composite literal type interface{}
invalid composite literal type interface{}
How to pack nested interfaces for data payload? for instance:
This trows the following error:
invalid composite literal type interface{}