On Sat, Feb 25, 2017 at 8:03 PM, Jan Mercl <0xj...@gmail.com> wrote: >> I think both these approaches are fine, but just wanted to check. > > They're not, #2 has a data race.
Thanks, can you please explain how or point me to a doc/post explaining it? > > -- > > -j -- http://echorand.me -- 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.