diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/io.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/misc/io.go b/misc/io.go new file mode 100644 index 0000000..5f9a13c --- /dev/null +++ b/misc/io.go @@ -0,0 +1,8 @@ +package misc + +// Duplex is an interface that wraps the basic Read and Write method. It is the +// intersection between io.Reader and io.Writer. +type Duplex interface { + Read(p []byte) (n int, err error) + Write(p []byte) (n int, err error) +} |