From 4a05e5c029438b6da4c30bcd7b8368e2f04ea75b Mon Sep 17 00:00:00 2001 From: Thomas <9749173+uhthomas@users.noreply.github.com> Date: Thu, 18 Feb 2021 16:28:21 +0000 Subject: [PATCH] Deprecate io/ioutil --- filesystem/local/local.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/filesystem/local/local.go b/filesystem/local/local.go index 2c4347c4..b4928107 100644 --- a/filesystem/local/local.go +++ b/filesystem/local/local.go @@ -4,7 +4,6 @@ import ( "context" "fmt" "io" - "io/ioutil" "os" "path/filepath" @@ -27,7 +26,7 @@ func New(dir string) (*FileSystem, error) { // Create writes r to a temporary file, and links it to a permanent location // upon success. func (fs FileSystem) Create(_ context.Context, name string, r io.Reader) error { - f, err := ioutil.TempFile(fs.tmp, "kipp") + f, err := os.CreateTemp(fs.tmp, "kipp") if err != nil { return fmt.Errorf("temp file: %w", err) }