mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-04 02:57:46 +00:00
os: add a stub for File.Truncate
This commit is contained in:
@@ -174,6 +174,11 @@ func (f *File) Fd() uintptr {
|
||||
panic("unimplemented: os.file.Fd()")
|
||||
}
|
||||
|
||||
// Truncate is a stub, not yet implemented
|
||||
func (f *File) Truncate(size int64) error {
|
||||
return &PathError{"truncate", f.name, ErrNotImplemented}
|
||||
}
|
||||
|
||||
const (
|
||||
PathSeparator = '/' // OS-specific path separator
|
||||
PathListSeparator = ':' // OS-specific path list separator
|
||||
|
||||
Reference in New Issue
Block a user