mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 16:52:18 +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
+2
-3
@@ -25,7 +25,6 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"go/format"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
)
|
||||
|
||||
@@ -37,7 +36,7 @@ func main() {
|
||||
}
|
||||
|
||||
func main1() error {
|
||||
src, err := ioutil.ReadFile("main.go")
|
||||
src, err := os.ReadFile("main.go")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@@ -81,5 +80,5 @@ const usageStr = ` + "`")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return ioutil.WriteFile("data.go", formatted, 0644)
|
||||
return os.WriteFile("data.go", formatted, 0644)
|
||||
}
|
||||
Reference in new issue
Block a user