io: cleanup ReaderWriter interface (#12218)

pull/12222/head
lydiandy 2021-10-18 00:39:51 +08:00 committed by GitHub
parent 3a073329ff
commit 98b2bdb410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 5 deletions

View File

@ -2,11 +2,8 @@ module io
// ReaderWriter represents a stream that can be read from and wrote to
pub interface ReaderWriter {
// from Reader
mut:
read(mut buf []byte) ?int
// from Writer
write(buf []byte) ?int
Reader
Writer
}
// ReaderWriterImpl is a ReaderWriter that can be made from