I have one mapwith complex keys - for example, 2D arrays:
m := make(map[[2][3]int]int)
When I insert a new key into the card, does Go make a deep copy of the key?
a := [2][3]int{{1, 2, 3}, {4, 5, 6}}
m[a] = 1
In other words, if I changed the array aafter using it as a map key, does the map still have the old value a?
source
share