|
|
|
|
|
by TheDong
4183 days ago
|
|
Oh, hey, it's a generic package that means you lose type safety and saves you from writing roughly 10 lines of code. Buffered channels + goroutines + WaitGroup already allow you to implement this trivially, and because channels are builtin generic, you can do it without the nasty type casts. Really, []interface{} is a terrible type to work with. |
|
Or actually, it's not a generic (as in generics) package, which is why you lose type safety.