diff options
Diffstat (limited to 'src/pkg/os/error_plan9.go')
-rw-r--r-- | src/pkg/os/error_plan9.go | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/pkg/os/error_plan9.go b/src/pkg/os/error_plan9.go index 159d685e7..3c9dfb0b1 100644 --- a/src/pkg/os/error_plan9.go +++ b/src/pkg/os/error_plan9.go @@ -4,24 +4,21 @@ package os -// IsExist returns whether the error is known to report that a file already exists. -func IsExist(err error) bool { +func isExist(err error) bool { if pe, ok := err.(*PathError); ok { err = pe.Err } return contains(err.Error(), " exists") } -// IsNotExist returns whether the error is known to report that a file does not exist. -func IsNotExist(err error) bool { +func isNotExist(err error) bool { if pe, ok := err.(*PathError); ok { err = pe.Err } return contains(err.Error(), "does not exist") } -// IsPermission returns whether the error is known to report that permission is denied. -func IsPermission(err error) bool { +func isPermission(err error) bool { if pe, ok := err.(*PathError); ok { err = pe.Err } |