mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-24 06:19:04 +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()")
|
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 (
|
const (
|
||||||
PathSeparator = '/' // OS-specific path separator
|
PathSeparator = '/' // OS-specific path separator
|
||||||
PathListSeparator = ':' // OS-specific path list separator
|
PathListSeparator = ':' // OS-specific path list separator
|
||||||
|
|||||||
Reference in New Issue
Block a user