os: add a stub for File.Truncate

Этот коммит содержится в:
Damian Gryski 2021-11-24 14:41:00 -08:00 коммит произвёл Ron Evans
родитель b0fce80b50
коммит 47db50b273

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

@ -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