This question already has an answer here:
- Can not assign to pair in a map 3 answers
I want to create a map[string][2]int
in Go. I tried this at go playground but I got errors. How can I solve this?
fmt.Println("Hello, playground")
m:= make(map [string][2]int)
m["hi"]={2,3}
m["heello"][1]=1
m["hi"][0]=m["hi"][0]+1
m["h"][1]=m["h"][1]+1
fmt.Println(m)
</div>