all: remove calls to deprecated ioutil package

Fixes produced via semgrep and https://github.com/dgryski/semgrep-go/blob/master/ioutil.yml
This commit is contained in:
Damian Gryski
2022-08-05 12:26:15 -07:00
committed by Ron Evans
parent 13f21477b1
commit edbbca5614
13 changed files with 34 additions and 39 deletions
+2 -2
View File
@@ -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)
}