diff options
author | Damian Gryski <[email protected]> | 2022-08-05 12:26:15 -0700 |
---|---|---|
committer | Ron Evans <[email protected]> | 2022-08-07 10:32:23 +0200 |
commit | edbbca5614fc5694d0c631cbcea73c7e2e90b336 (patch) | |
tree | cf46bf79f6a7edbb3d4966d8a93d50950d1347ca /builder/musl.go | |
parent | 13f21477b118e3f410a196cafcf2e46823e8ba61 (diff) | |
download | tinygo-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/musl.go')
-rw-r--r-- | builder/musl.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/builder/musl.go b/builder/musl.go index 5dae0428a..8a3716f08 100644 --- a/builder/musl.go +++ b/builder/musl.go @@ -3,7 +3,6 @@ package builder import ( "bytes" "fmt" - "io/ioutil" "os" "path/filepath" "regexp" @@ -35,7 +34,7 @@ var Musl = Library{ filepath.Join(muslDir, "include", "alltypes.h.in"), } for _, infile := range infiles { - data, err := ioutil.ReadFile(infile) + data, err := os.ReadFile(infile) if err != nil { return err } @@ -63,7 +62,7 @@ var Musl = Library{ if err != nil { return err } - data, err := ioutil.ReadFile(filepath.Join(muslDir, "arch", arch, "bits", "syscall.h.in")) + data, err := os.ReadFile(filepath.Join(muslDir, "arch", arch, "bits", "syscall.h.in")) if err != nil { return err } |