mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-19 14:57:04 +00:00
Replace uses of ioutil
ioutil package was deprecated in Go 1.16, replace all uses with their respective replacements. This patch was generated with a combination of `gofmt -r`, `eg`, and manually (for `ioutil.ReadDir`).
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package testlib
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
@@ -9,7 +8,7 @@ import (
|
||||
|
||||
func TestBasic(t *testing.T) {
|
||||
dir := MustTempDir(t)
|
||||
if err := ioutil.WriteFile(dir+"/file", nil, 0660); err != nil {
|
||||
if err := os.WriteFile(dir+"/file", nil, 0660); err != nil {
|
||||
t.Fatalf("could not create file in %s: %v", dir, err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user