blob: 5f9a13c24a472152bb6e9d14f1b265918fe091ec (
plain) (
tree)
|
|
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)
}
|