Lindenii Project Forge
Login

go-lindenii-common

Common library for the Lindenii Project
Commit info
ID
2354c7a93f92600fa06876208f6a5eef230ea456
Author
Runxi Yu <me@runxiyu.org>
Author date
Sun, 12 Jan 2025 11:41:14 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Sun, 12 Jan 2025 11:41:14 +0800
Actions
misc: Add Duplex
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)
}