c55a4ac779
The io/ioutil package has been deprecated in Go 1.16. This commit replaces the existing io/ioutil functions with their new definitions in io and os packages. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
11 lines
264 B
Go
11 lines
264 B
Go
//go:build !windows
|
|
// +build !windows
|
|
|
|
package ioutils // import "github.com/docker/docker/pkg/ioutils"
|
|
|
|
import "os"
|
|
|
|
// TempDir on Unix systems is equivalent to os.MkdirTemp.
|
|
func TempDir(dir, prefix string) (string, error) {
|
|
return os.MkdirTemp(dir, prefix)
|
|
}
|