// to find the pathname of the file. It is the caller's responsibility
// to remove the file when no longer needed.
//
-// As of Go 1.16, this function simply calls os.CreateTemp.
+// As of Go 1.17, this function simply calls os.CreateTemp.
func TempFile(dir, pattern string) (f *os.File, err error) {
return os.CreateTemp(dir, pattern)
}
// will not choose the same directory. It is the caller's responsibility
// to remove the directory when no longer needed.
//
-// As of Go 1.16, this function simply calls os.MkdirTemp.
+// As of Go 1.17, this function simply calls os.MkdirTemp.
func TempDir(dir, pattern string) (name string, err error) {
return os.MkdirTemp(dir, pattern)
}