Skip to content

Commit

Permalink
Remove io/ioutil s
Browse files Browse the repository at this point in the history
  • Loading branch information
yuin committed Jan 23, 2024
1 parent 4bade05 commit 90c46e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions commonmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package goldmark_test

import (
"encoding/json"
"io/ioutil"
"os"
"testing"

. "github.com/yuin/goldmark"
Expand All @@ -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)
}
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package fuzz
import (
"bytes"
"encoding/json"
"io/ioutil"
"os"
"testing"

"github.com/yuin/goldmark"
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit 90c46e0

Please sign in to comment.