4 ms·
A simple illustration of the use of goroutines and channels in Google Go
- mdwrigh2 15y agoOne of the more interesting ways I've seen channels used in Go is a channel of generic interfaces, and then switching based on the type received. https://docs.google.com/present/view?id=df36r82q_5gdq5gzth&pli=1 https://docs.google.com/present/view?id=df36r82q_5gdq5gzth&#... has an example of this on slide 15.