Hello, You almost had it, just backwards. In this play, the goroutines are waiting for permission to print their next value, printing it, then passing the permission to the other goroutine. https://play.golang.org/p/LsxOfKihM7 I think that meets your //redact requirements too.
Have fun. On Tuesday, 6 September 2016 09:20:05 UTC+10, Dave Cheney wrote: > > Please redirect this question to golang-nuts. > > On Sun, Sep 4, 2016 at 7:22 AM, Ринат Галиев <diese...@gmail.com > <javascript:>> wrote: > > Hi, i need to solve the task: > > Change the program so that the numbers 1 through 6 were printed to the > > console in order. Allowed to amend the sections of code that are marked > > commentary «// redact». > > https://play.golang.org/p/tUMlHWHfJE > > > > it is not work: https://play.golang.org/p/hW-9J5YfC4 > > > > i know, that need to use the channels > > > > -- > > You received this message because you are subscribed to the Google > Groups > > "golang-dev" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to golang-dev+...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/d/optout. > -- 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.