aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFederico G. Schwindt <[email protected]>2021-06-21 15:21:44 +0100
committerGitHub <[email protected]>2021-06-21 16:21:44 +0200
commit64058c3efb2ca7a5352203a728cfd59b6c0a3cc4 (patch)
tree62a0ab67abb0c5d49efaaf2ca2bba535e6319f95
parente107efa63f5369ded1134466abf2631e4fd579f6 (diff)
downloadtinygo-64058c3efb2ca7a5352203a728cfd59b6c0a3cc4.tar.gz
tinygo-64058c3efb2ca7a5352203a728cfd59b6c0a3cc4.zip
net: os: add more stubs for 1.15
Fix importing net/http.
-rw-r--r--src/net/dial.go1
-rw-r--r--src/os/file_go_other.go5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/net/dial.go b/src/net/dial.go
index 763096d9e..a1cb75d87 100644
--- a/src/net/dial.go
+++ b/src/net/dial.go
@@ -8,6 +8,7 @@ import (
type Dialer struct {
Timeout time.Duration
Deadline time.Time
+ DualStack bool
KeepAlive time.Duration
}
diff --git a/src/os/file_go_other.go b/src/os/file_go_other.go
index d8d680ffe..351de7acc 100644
--- a/src/os/file_go_other.go
+++ b/src/os/file_go_other.go
@@ -44,3 +44,8 @@ const (
func (m FileMode) IsDir() bool {
return false
}
+
+// IsRegular is a stub, always returning false
+func (m FileMode) IsRegular() bool {
+ return false
+}