blob: 5f9a13c24a472152bb6e9d14f1b265918fe091ec (
plain) (
blame)
1
2
3
4
5
6
7
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)
}
|