7 ms·
> 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
by jweese 13y 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.
- mratzloff 13y agoI find that I use channels mostly when working with goroutines. It's also a convenient mechanism for connection pooling.