Go's reflection api is quite the unknown for many developers, but it can definitely come in handy in some scenarios. In this article we'll use Go's reflection in a scenario that should feel familiar enough to see practical uses for using reflection.
Surprise! I write Go these days. Lately I've been finding some code out in the wild that uses naive solutions for concurrency. Given the times I've seen similar patterns, my theory is that it is probably inspired by basic goroutines example code out there. The scenario Imagine you want to run a particular number of … Continue reading Refactoring in Go: goroutine concurrency