On Wed, Jul 5, 2017 at 12:29 PM Peter Kleiweg <pklei...@xs4all.nl> wrote:
> From the faq: https://golang.org/doc/faq#atomic_maps > > ... uncontrolled map access can crash the program. > > In what situations does this apply? > > Can I have two goroutines reading a single map at the same time? > Yes. > Can I have one goroutine putting something in a map while at the same time > another goroutine is reading the map? > This has a risk of crashes or arbitrary data corruption. > Does it depend on the type of the key or the type of the value? > No. Thomas -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.