News for hackers. Stuff that matters.
Re:Go Things I Love: Channels and Goroutines by meddlepal on Tuesday January 07, 2020 @07:48AM (#21979430)
I've found channels create more complexity than their usually worth and it's often simpler, more readable, and more maintainable to just use a sync.Mutex or sync.RWMutex.
Re:Go Things I Love: Channels and Goroutines by shakezula on Tuesday January 07, 2020 @12:28PM (#21982149)
I'd be hard-pressed to disagree. The entire time reading this blog post, I was confused why a plain function couldn't have been used instead.