From 64058c3efb2ca7a5352203a728cfd59b6c0a3cc4 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Mon, 21 Jun 2021 15:21:44 +0100 Subject: [PATCH] net: os: add more stubs for 1.15 Fix importing net/http. --- src/net/dial.go | 1 + src/os/file_go_other.go | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/net/dial.go b/src/net/dial.go index 763096d9..a1cb75d8 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 d8d680ff..351de7ac 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 +}