mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 11:07:46 +00:00
net: os: add more stubs for 1.15
Fix importing net/http.
This commit is contained in:
committed by
GitHub
parent
e107efa63f
commit
64058c3efb
@@ -8,6 +8,7 @@ import (
|
||||
type Dialer struct {
|
||||
Timeout time.Duration
|
||||
Deadline time.Time
|
||||
DualStack bool
|
||||
KeepAlive time.Duration
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user