net: os: add more stubs for 1.15
Fix importing net/http.
Этот коммит содержится в:
родитель
e107efa63f
коммит
64058c3efb
2 изменённых файлов: 6 добавлений и 0 удалений
|
@ -8,6 +8,7 @@ import (
|
||||||
type Dialer struct {
|
type Dialer struct {
|
||||||
Timeout time.Duration
|
Timeout time.Duration
|
||||||
Deadline time.Time
|
Deadline time.Time
|
||||||
|
DualStack bool
|
||||||
KeepAlive time.Duration
|
KeepAlive time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,3 +44,8 @@ const (
|
||||||
func (m FileMode) IsDir() bool {
|
func (m FileMode) IsDir() bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// IsRegular is a stub, always returning false
|
||||||
|
func (m FileMode) IsRegular() bool {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче