Add os stubs required for net/http

Этот коммит содержится в:
Federico G. Schwindt 2021-05-28 23:40:55 +01:00 коммит произвёл Ayke
родитель 62f9f61664
коммит 78d030aa7a
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -116,6 +116,11 @@ func (f *File) Readdirnames(n int) (names []string, err error) {
return nil, &PathError{"readdirnames", f.name, ErrNotImplemented}
}
// Seek is a stub, not yet implemented
func (f *File) Seek(offset int64, whence int) (ret int64, err error) {
return 0, &PathError{"seek", f.name, ErrNotImplemented}
}
// Stat is a stub, not yet implemented
func (f *File) Stat() (FileInfo, error) {
return nil, &PathError{"stat", f.name, ErrNotImplemented}

5
src/os/tempfile.go Обычный файл
Просмотреть файл

@ -0,0 +1,5 @@
package os
func CreateTemp(dir, pattern string) (*File, error) {
return nil, &PathError{"createtemp", pattern, ErrNotImplemented}
}