08.3 io.Reader和io.Writer接口

如前所述,实现io.Reader接口需要实现Read()方法,io.Writer()接口需要实现Write()方法。这两个接口在Go中非常常见,我们将在稍后使用它们。

Last updated