mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-25 16:55:11 +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
@@ -31,7 +31,6 @@ import (
|
||||
"image"
|
||||
"image/draw"
|
||||
"image/png"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"runtime"
|
||||
"strings"
|
||||
@@ -72,7 +71,7 @@ var testCases = []testCase{{
|
||||
}}
|
||||
|
||||
func mustLoad(filename string) []byte {
|
||||
src, err := ioutil.ReadFile("../../" + filename)
|
||||
src, err := os.ReadFile("../../" + filename)
|
||||
if err != nil {
|
||||
panic(err.Error())
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user