Hi Golangnuts, I'm trying to implement kind of pipe function, using channels
Do you think this would be a correct conception: func Pipe(fs ...task) { ch1 := make(chan interface{}) ch2 := make(chan interface{}) for _, f := range fs { ch1, ch2 = ch2, ch1 go f(ch1, ch2) } } Can you also explain why the function 2 and 3 don't go through the end? "f2 end", "f3 end" not printed :( https://play.golang.org/p/g5lL9xiM_-q -- 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.