aboutsummaryrefslogtreecommitdiffhomepage
path: root/builder/uf2.go
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2022-08-05 12:26:15 -0700
committerRon Evans <[email protected]>2022-08-07 10:32:23 +0200
commitedbbca5614fc5694d0c631cbcea73c7e2e90b336 (patch)
treecf46bf79f6a7edbb3d4966d8a93d50950d1347ca /builder/uf2.go
parent13f21477b118e3f410a196cafcf2e46823e8ba61 (diff)
downloadtinygo-edbbca5614fc5694d0c631cbcea73c7e2e90b336.tar.gz
tinygo-edbbca5614fc5694d0c631cbcea73c7e2e90b336.zip
all: remove calls to deprecated ioutil package
Fixes produced via semgrep and https://github.com/dgryski/semgrep-go/blob/master/ioutil.yml
Diffstat (limited to 'builder/uf2.go')
-rw-r--r--builder/uf2.go4
1 files changed, 2 insertions, 2 deletions
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.