
上QQ阅读APP看书,第一时间看更新
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!