mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-22 13:29:01 +00:00
net: os: add more stubs for 1.15
Fix importing net/http.
This commit is contained in:
committed by
GitHub
parent
e107efa63f
commit
64058c3efb
@@ -8,6 +8,7 @@ import (
|
|||||||
type Dialer struct {
|
type Dialer struct {
|
||||||
Timeout time.Duration
|
Timeout time.Duration
|
||||||
Deadline time.Time
|
Deadline time.Time
|
||||||
|
DualStack bool
|
||||||
KeepAlive time.Duration
|
KeepAlive time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,3 +44,8 @@ const (
|
|||||||
func (m FileMode) IsDir() bool {
|
func (m FileMode) IsDir() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsRegular is a stub, always returning false
|
||||||
|
func (m FileMode) IsRegular() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user