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) }