diff options
Diffstat (limited to 'libgo/go/io/io.go')
-rw-r--r-- | libgo/go/io/io.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libgo/go/io/io.go b/libgo/go/io/io.go index 5187eff..bddb701 100644 --- a/libgo/go/io/io.go +++ b/libgo/go/io/io.go @@ -216,6 +216,11 @@ type ByteScanner interface { UnreadByte() error } +// ByteWriter is the interface that wraps the WriteByte method. +type ByteWriter interface { + WriteByte(c byte) error +} + // RuneReader is the interface that wraps the ReadRune method. // // ReadRune reads a single UTF-8 encoded Unicode character |