mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-11 22:43:40 +00:00
Add more net compatibility
Required for net/http.
This commit is contained in:
committed by
Ron Evans
parent
15d77119c9
commit
b092856238
@@ -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}
|
||||
}
|
||||
Reference in New Issue
Block a user