Skip to content

Commit c9b5d0e

Browse files
committed
Remove references to deprecated io/ioutil package
Signed-off-by: Austin Vazquez <[email protected]>
1 parent 7301c34 commit c9b5d0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: schema/validate.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
"fmt"
5-
"io/ioutil"
5+
"io"
66
"os"
77
"path/filepath"
88
"strings"
@@ -61,7 +61,7 @@ func main() {
6161
}
6262
documentLoader = gojsonschema.NewReferenceLoader("file://" + documentPath)
6363
} else {
64-
documentBytes, err := ioutil.ReadAll(os.Stdin)
64+
documentBytes, err := io.ReadAll(os.Stdin)
6565
if err != nil {
6666
fmt.Println(err)
6767
os.Exit(1)

0 commit comments

Comments
 (0)