Add os stubs required for net/http

This commit is contained in:
Federico G. Schwindt
2021-05-28 23:40:55 +01:00
committed by Ayke
parent 62f9f61664
commit 78d030aa7a
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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
View File
@@ -0,0 +1,5 @@
package os
func CreateTemp(dir, pattern string) (*File, error) {
return nil, &PathError{"createtemp", pattern, ErrNotImplemented}
}