Use CloseRead and CloseWrites

This commit is contained in:
9seconds
2021-12-01 10:37:31 +03:00
parent 7b1f86b75d
commit ffad717829
32 changed files with 320 additions and 99 deletions
+17
View File
@@ -0,0 +1,17 @@
package essentials
import "net"
type CloseableReader interface {
CloseRead() error
}
type CloseableWriter interface {
CloseWrite() error
}
type Conn interface {
net.Conn
CloseableReader
CloseableWriter
}