Do those *SomeStruct change during map serialization, or only the map (new keys
/ delete keys)?
If they do, you'll have to lock them too, not just the map access!
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
Hi,
I'm currently tackling a head scratching problem (at least for me).
First, I'll start by explaining my main goal:
I have an in memory 'map[string]*SomeStructPointer' that I want to JSON
encode and write to a file.
Now since I want to prevent concurrent access to the map, I need to
lock-down