Skip to content

Commit 62ee709

Browse files
committed
add windows stub
Signed-off-by: leongross <[email protected]>
1 parent fb57229 commit 62ee709

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/os/file_windows.go

+8
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ func Pipe() (r *File, w *File, err error) {
5959
return
6060
}
6161

62+
func (f *unixFileHandle) Truncate(size int64) error {
63+
return ErrNotImplemented
64+
}
65+
6266
func tempDir() string {
6367
n := uint32(syscall.MAX_PATH)
6468
for {
@@ -106,6 +110,10 @@ func (f unixFileHandle) Sync() error {
106110
return ErrNotImplemented
107111
}
108112

113+
func (f *File) Truncate(size int64) error {
114+
return ErrNotImplemented
115+
}
116+
109117
// isWindowsNulName reports whether name is os.DevNull ('NUL') on Windows.
110118
// True is returned if name is 'NUL' whatever the case.
111119
func isWindowsNulName(name string) bool {

0 commit comments

Comments
 (0)