Refactor: use core/adapter

This commit is contained in:
xjasonlyu
2022-02-06 20:26:09 +08:00
parent 93a5ff5d86
commit edec658cd0
7 changed files with 20 additions and 20 deletions

16
core/adapter/adapter.go Normal file
View File

@@ -0,0 +1,16 @@
package adapter
import (
"net"
)
// TCPConn implements the net.Conn interface.
type TCPConn interface {
net.Conn
}
// UDPConn implements net.Conn and net.PacketConn.
type UDPConn interface {
net.Conn
net.PacketConn
}