Skip to content

Commit

Permalink
ioutil to be deprecated soon.
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduardo Tongson committed Mar 2, 2021
1 parent 049ddac commit a648f76
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/lib/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
Expand Down Expand Up @@ -97,7 +96,7 @@ func PathWalker(sh *strings.Builder) func(string, os.FileInfo, error) error {
log.Panic(err)
}
}()
str, err := ioutil.ReadAll(file)
str, err := io.ReadAll(file)
if err != nil {
log.Panic(err)
}
Expand All @@ -123,7 +122,7 @@ func FileRead(path string) string {
log.Panic(err)
}
}()
str, err := ioutil.ReadAll(file)
str, err := io.ReadAll(file)
if err != nil {
log.Panic(err)
}
Expand Down

0 comments on commit a648f76

Please sign in to comment.