File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ package json
7
7
import (
8
8
"bytes"
9
9
"compress/gzip"
10
- "io/ioutil "
10
+ "io"
11
11
"os"
12
12
"path/filepath"
13
13
"sort"
30
30
31
31
func jsonTestdata () []jsonTestdataEntry {
32
32
jsonTestdataOnce .Do (func () {
33
- fis , err := ioutil .ReadDir ("testdata" )
33
+ fis , err := os .ReadDir ("testdata" )
34
34
if err != nil {
35
35
panic (err )
36
36
}
@@ -56,15 +56,15 @@ func jsonTestdata() []jsonTestdataEntry {
56
56
name := strings .Join (words , "" )
57
57
58
58
// Read and decompress the test data.
59
- b , err := ioutil .ReadFile (filepath .Join ("testdata" , fi .Name ()))
59
+ b , err := os .ReadFile (filepath .Join ("testdata" , fi .Name ()))
60
60
if err != nil {
61
61
panic (err )
62
62
}
63
63
zr , err := gzip .NewReader (bytes .NewReader (b ))
64
64
if err != nil {
65
65
panic (err )
66
66
}
67
- data , err := ioutil .ReadAll (zr )
67
+ data , err := io .ReadAll (zr )
68
68
if err != nil {
69
69
panic (err )
70
70
}
You can’t perform that action at this time.
0 commit comments