http://play.golang.org/p/WJBlS-x_Yt
Could I use buffered a channel to avoid returning nil (L33) ?
At the same time, I'd like to loop on ch instead of names (L38). Is
that possible?
I ran my example with -race and there was no race condition and it
doesn't deadlock (even when I force it to panic L26)
Any help is greatly appreciated.
-- Alfonso
Alfonso Vega-Garcia | Software Engineer | vegacom at 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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.