Lindenii Project Forge
Warning: Due to various recent migrations, viewing non-HEAD refs may be broken.
/misc/io.go (raw)
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)
}