I want to convert byte array to map[string,string] using golang. I tried this:
var byte := json.Marshal(input)
var map := make(map[string]string *byte) // NOT WORKING
if byte holds value like {\"hello\":\"world\",...} How to create the map from byte array
Please help.
You probably want to do something like
m := make(map[string]string)
err := json.Unmarshal(input, &m)
This creates a new map[string]string and unmarshals a byte array into it.