-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Related to #7 Instead of using readStream to convert byte array into a map[string]interface, prefer just keeping the []byte such that clients can use json.Unmarshal into their own structs.
Line 82 in 9d3ed7f
| return readStream(response), err |
get rid of:
Lines 7 to 17 in 7a3e060
| func readStream(data []byte) map[string]interface{} { | |
| d := make(map[string]interface{}) | |
| err := json.Unmarshal(data, &d) | |
| // if data is an empty stream this will cause an unmarshal error | |
| if err != nil { | |
| panic(err) | |
| } | |
| return d | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request