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
+24
View File
@@ -0,0 +1,24 @@
package net
import (
"context"
"time"
)
type Dialer struct {
Timeout time.Duration
Deadline time.Time
KeepAlive time.Duration
}
func Dial(network, address string) (Conn, error) {
return nil, ErrNotImplemented
}
func Listen(network, address string) (Listener, error) {
return nil, ErrNotImplemented
}
func (d *Dialer) DialContext(ctx context.Context, network, address string) (Conn, error) {
return nil, ErrNotImplemented
}