mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 08:47:28 +01:00
Remove calls to Go's deprecated "io/ioutil"
This commit is contained in:
1 parent
788479dd64
commit
226c476994
31 files changed
+73
-93
No files matched your search
@@ -18,7 +18,7 @@ import (
|
||||
"bytes"
|
||||
"compress/zlib"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"log"
|
||||
"strings"
|
||||
|
||||
@@ -83,7 +83,7 @@ func ExampleCut() {
|
||||
if err != nil {
|
||||
log.Fatalf("NewReader: %v", err)
|
||||
}
|
||||
uncompressed, err := ioutil.ReadAll(r)
|
||||
uncompressed, err := io.ReadAll(r)
|
||||
if err != nil {
|
||||
log.Fatalf("ReadAll: %v", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user