Hacker News new | ask | show | jobs
by jweese 4758 days ago
> The channel is the analog to the Unix shell’s | character.

This sentence was italicized, and rightfully so. I've written a few small Go programs, but I haven't run into a problem where I thought, "A channel is definitely the right solution here." Yet I love and feel quite comfortable with shuffling data through big shell pipelines. Perhaps I'll think of a channel next time I'm reaching for a pipeline.

1 comments

I find that I use channels mostly when working with goroutines. It's also a convenient mechanism for connection pooling.