Please tell me how to covert map to struct.
# I saw the link, but I didn't understand much.
For example,
//define map and initialization
var m url.Vaues (= map[string][]string) )
m["name"] = []string{"go"}
m["address"] = []string{"japan"}
m["hobbies"] = []string{"watching tv", "listen music"}
//define struct
type example struct{
name string
address string
hobbies []string
}
// convert map to struct
????
// expect like this
example{ "go", "japan",[]string{"watching tv", "listen music"}}
Thank you.
Yasutaka