Skip to content

Commit 64058c3

Browse files
authored
net: os: add more stubs for 1.15
Fix importing net/http.
1 parent e107efa commit 64058c3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/net/dial.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
type Dialer struct {
99
Timeout time.Duration
1010
Deadline time.Time
11+
DualStack bool
1112
KeepAlive time.Duration
1213
}
1314

src/os/file_go_other.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,8 @@ const (
4444
func (m FileMode) IsDir() bool {
4545
return false
4646
}
47+
48+
// IsRegular is a stub, always returning false
49+
func (m FileMode) IsRegular() bool {
50+
return false
51+
}

0 commit comments

Comments
 (0)