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 /testdata | |
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 'testdata')
-rw-r--r-- | testdata/filesystem.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testdata/filesystem.go b/testdata/filesystem.go index 1f561ba84..3825d6187 100644 --- a/testdata/filesystem.go +++ b/testdata/filesystem.go @@ -1,7 +1,7 @@ package main import ( - "io/ioutil" + "io" "os" ) @@ -28,7 +28,7 @@ func main() { } }() - data, err := ioutil.ReadAll(f) + data, err := io.ReadAll(f) if err != nil { panic(err) } |