net: os: add more stubs for 1.15

Fix importing net/http.
This commit is contained in:
Federico G. Schwindt
2021-06-21 15:21:44 +01:00
committed by GitHub
parent e107efa63f
commit 64058c3efb
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -8,6 +8,7 @@ import (
type Dialer struct {
Timeout time.Duration
Deadline time.Time
DualStack bool
KeepAlive time.Duration
}
+5
View File
@@ -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
}