Drop deprecated ioutil
`ioutil` has been deprecated by golang. All the code in `ioutil` just forwards functionality to code in either the `io` or `os` packages. See https://github.com/golang/go/pull/51961 for more info. Signed-off-by: Jeff Widman <jeff@jeffwidman.com>
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
|
||||
fuzz "github.com/AdaLogics/go-fuzz-headers"
|
||||
@@ -28,7 +27,7 @@ import (
|
||||
|
||||
func FuzzParseHostsFile(data []byte) int {
|
||||
f := fuzz.NewConsumer(data)
|
||||
dir, err := ioutil.TempDir("", "fuzz-")
|
||||
dir, err := os.MkdirTemp("", "fuzz-")
|
||||
if err != nil {
|
||||
return 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user