Remove io/ioutil s

This commit is contained in:
yuin 2024-01-23 22:45:14 +09:00
parent 4bade05173
commit 90c46e0829
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ package goldmark_test
import ( import (
"encoding/json" "encoding/json"
"io/ioutil" "os"
"testing" "testing"
. "github.com/yuin/goldmark" . "github.com/yuin/goldmark"
@ -20,7 +20,7 @@ type commonmarkSpecTestCase struct {
} }
func TestSpec(t *testing.T) { func TestSpec(t *testing.T) {
bs, err := ioutil.ReadFile("_test/spec.json") bs, err := os.ReadFile("_test/spec.json")
if err != nil { if err != nil {
panic(err) panic(err)
} }

View file

@ -3,7 +3,7 @@ package fuzz
import ( import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"io/ioutil" "os"
"testing" "testing"
"github.com/yuin/goldmark" "github.com/yuin/goldmark"
@ -42,7 +42,7 @@ func fuzz(f *testing.F) {
} }
func FuzzDefault(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 { if err != nil {
panic(err) panic(err)
} }