You can also write to a channel and have the reader of the channel write to the map
On Fri, Oct 13, 2017 at 11:36 AM, Shawn Milochik <shawn.m...@gmail.com> wrote: > On Fri, Oct 13, 2017 at 2:33 PM, Alex Buchanan <buchanae.o...@gmail.com> > wrote: > >> Thanks for the quick help guys! >> >> I ended up using https://godoc.org/golang.org/x/sync/syncmap >> >> > Cool, that's what it's there for. Personally I'd avoid using empty > interfaces, though. > > -- > 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. > -- Michael T. Jones michael.jo...@gmail.com -- 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.