From edbbca5614fc5694d0c631cbcea73c7e2e90b336 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Fri, 5 Aug 2022 12:26:15 -0700 Subject: all: remove calls to deprecated ioutil package Fixes produced via semgrep and https://github.com/dgryski/semgrep-go/blob/master/ioutil.yml --- builder/uf2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builder/uf2.go') diff --git a/builder/uf2.go b/builder/uf2.go index 0d8696f8a..62bae5c66 100644 --- a/builder/uf2.go +++ b/builder/uf2.go @@ -10,7 +10,7 @@ package builder import ( "bytes" "encoding/binary" - "io/ioutil" + "os" "strconv" ) @@ -26,7 +26,7 @@ func convertELFFileToUF2File(infile, outfile string, uf2FamilyID string) error { if err != nil { return err } - return ioutil.WriteFile(outfile, output, 0644) + return os.WriteFile(outfile, output, 0644) } // convertBinToUF2 converts the binary bytes in input to UF2 formatted data. -- cgit v1.2.3