2 ms·
I wrote an HLS video proxy as my first go project last summer using only channels and goroutines. In retrospect it was clear that channels were very elegant fo
by paulsutter 11y ago
I wrote an HLS video proxy as my first go project last summer using only channels and goroutines.
In retrospect it was clear that channels were very elegant for certain parts of the code, and in other areas mutexes would have been simpler.
After a bit of experience with go, you gain an intuitive sense for which is appropriate in each case.