mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 18:47:47 +00:00
Add os stubs required for net/http
This commit is contained in:
committed by
Ayke
parent
62f9f61664
commit
78d030aa7a
@@ -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}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
package os
|
||||
|
||||
func CreateTemp(dir, pattern string) (*File, error) {
|
||||
return nil, &PathError{"createtemp", pattern, ErrNotImplemented}
|
||||
}
|
||||
Reference in New Issue
Block a user