Skip to content

Commit

Permalink
replace ioutil.ReadAll with io.ReadAll
Browse files Browse the repository at this point in the history
  • Loading branch information
stefafafan committed Nov 17, 2022
1 parent f6f4805 commit 7fd5540
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/driver_main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package drivers
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"os"
)

Expand All @@ -14,7 +14,7 @@ func DriverMain(driver Interface) {

switch method {
case "assemble":
b, err := ioutil.ReadAll(os.Stdin)
b, err := io.ReadAll(os.Stdin)
if err != nil {
fmt.Fprintln(os.Stderr, "failed to read from stdin")
os.Exit(1)
Expand Down
2 changes: 1 addition & 1 deletion templates/test/singleton/boil_queries_test.go.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type fKeyDestroyer struct {

func (f *fKeyDestroyer) Read(b []byte) (int, error) {
if f.buf == nil {
all, err := ioutil.ReadAll(f.reader)
all, err := io.ReadAll(f.reader)
if err != nil {
return 0, err
}
Expand Down

0 comments on commit 7fd5540

Please sign in to comment.