diff --git a/commonmark_test.go b/commonmark_test.go index 7482ff1..b4422e8 100644 --- a/commonmark_test.go +++ b/commonmark_test.go @@ -2,7 +2,7 @@ package goldmark_test import ( "encoding/json" - "io/ioutil" + "os" "testing" . "github.com/yuin/goldmark" @@ -20,7 +20,7 @@ type commonmarkSpecTestCase struct { } func TestSpec(t *testing.T) { - bs, err := ioutil.ReadFile("_test/spec.json") + bs, err := os.ReadFile("_test/spec.json") if err != nil { panic(err) } diff --git a/fuzz/fuzz_test.go b/fuzz/fuzz_test.go index 7f07302..29f6fb7 100644 --- a/fuzz/fuzz_test.go +++ b/fuzz/fuzz_test.go @@ -3,7 +3,7 @@ package fuzz import ( "bytes" "encoding/json" - "io/ioutil" + "os" "testing" "github.com/yuin/goldmark" @@ -42,7 +42,7 @@ func fuzz(f *testing.F) { } func FuzzDefault(f *testing.F) { - bs, err := ioutil.ReadFile("../_test/spec.json") + bs, err := os.ReadFile("../_test/spec.json") if err != nil { panic(err) }