diff options
author | Federico G. Schwindt <[email protected]> | 2021-06-21 15:21:44 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-06-21 16:21:44 +0200 |
commit | 64058c3efb2ca7a5352203a728cfd59b6c0a3cc4 (patch) | |
tree | 62a0ab67abb0c5d49efaaf2ca2bba535e6319f95 | |
parent | e107efa63f5369ded1134466abf2631e4fd579f6 (diff) | |
download | tinygo-64058c3efb2ca7a5352203a728cfd59b6c0a3cc4.tar.gz tinygo-64058c3efb2ca7a5352203a728cfd59b6c0a3cc4.zip |
net: os: add more stubs for 1.15
Fix importing net/http.
-rw-r--r-- | src/net/dial.go | 1 | ||||
-rw-r--r-- | src/os/file_go_other.go | 5 |
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 +} |