aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/os/file_other.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/os/file_other.go')
-rw-r--r--src/os/file_other.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/file_other.go b/src/os/file_other.go
index 12b21b838..7e4642c0b 100644
--- a/src/os/file_other.go
+++ b/src/os/file_other.go
@@ -33,6 +33,10 @@ type file struct {
name string
}
+func (f *file) close() error {
+ return f.handle.Close()
+}
+
func NewFile(fd uintptr, name string) *File {
return &File{&file{stdioFileHandle(fd), name}}
}