Remove calls to Go's deprecated "io/ioutil"

This commit is contained in:
Nigel Tao committed 2021-08-22 11:17:34 +10:00
1 parent 788479dd64
commit 226c476994
31 files changed
+73 -93

No files matched your search

+1 -2
View File
@@ -25,7 +25,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"net/http"
"os"
"sort"
@@ -152,7 +151,7 @@ func main1() error {
fmt.Fprintf(w, "// %4d entries have %2d%s probes\n", x, i, plus)
}
return ioutil.WriteFile("data.go", w.Bytes(), 0644)
return os.WriteFile("data.go", w.Bytes(), 0644)
}
func build() error {