Skip to content

Latest commit

 

History

History
4 lines (2 loc) · 226 Bytes

File metadata and controls

4 lines (2 loc) · 226 Bytes

io.Reader和io.Writer接口

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