I have the following pair defined in my go program
type pair struct { a float64 b float64 }
Then I create a map:
dictio
That's not legal for reasons described here:
Querying a map give a copy of the stored item, so there is no point assigning to it.
The recommended workaround is:
var xxoo = dictionary["xxoo"] xxoo.b = 5.0 dictionary["xxoo"] = xxoo