mirror of
https://github.com/tinygo-org/net.git
synced 2026-07-26 08:18:39 +00:00
6018d49fa2
Fix importing net/http.
26 lines
455 B
Go
26 lines
455 B
Go
package net
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type Dialer struct {
|
|
Timeout time.Duration
|
|
Deadline time.Time
|
|
DualStack bool
|
|
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
|
|
}
|