mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21: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,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
|
||||
}
|
||||
Reference in New Issue
Block a user