- Learning Functional Programming in Go
- Lex Sheehan
- 69字
- 2025-02-27 05:14:35
More reasons to design using interfaces
As if that's not enough reason to design using interfaces.
We also get access to a plethora of functionality. For example, when working with readers and writers, we get the following for free:


That's a lot of out-of-the-box functionality that we didn't have to test and code. Reusing Go standard library interfaces and functions is nearly always a win!