all: add support for Go 1.17

This commit is contained in:
Ayke van Laethem
2021-08-14 15:35:19 +02:00
committed by Ron Evans
parent d45497691f
commit 8e88e560a1
6 changed files with 24 additions and 8 deletions
+5
View File
@@ -24,6 +24,11 @@ func Mkdir(path string, perm FileMode) error {
return nil
}
// MkdirTemp is a stub, it will always return an error.
func MkdirTemp(dir, pattern string) (string, error) {
return "", &PathError{"mkdirtemp", dir, ErrNotImplemented}
}
// Remove removes a file or (empty) directory. If the operation fails, it will
// return an error of type *PathError.
func Remove(path string) error {