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