Add more net compatibility

Required for net/http.
This commit is contained in:
Federico G. Schwindt
2021-06-01 14:48:15 +01:00
committed by Ron Evans
parent 15d77119c9
commit b092856238
5 changed files with 218 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package net
// TCPConn is an implementation of the Conn interface for TCP network
// connections.
type TCPConn struct {
conn
}
func (c *TCPConn) CloseWrite() error {
return &OpError{"close", "", nil, nil, ErrNotImplemented}
}