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

+2 -2
View File
@@ -27,7 +27,7 @@ import (
"bytes"
"compress/lzw"
"fmt"
"io/ioutil"
"io"
"os"
"strconv"
"strings"
@@ -55,7 +55,7 @@ func main() {
}
func main1() error {
stdin, err := ioutil.ReadAll(os.Stdin)
stdin, err := io.ReadAll(os.Stdin)
if err != nil {
return err
}