1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2025-07-27 17:30:27 +00:00

chore: remove refs to deprecated io/ioutil

Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
This commit is contained in:
guoguangwu 2023-07-20 18:25:32 +08:00
parent f966b14096
commit 919f9abf38
12 changed files with 26 additions and 37 deletions

View file

@ -7,7 +7,6 @@ import (
"flag"
"fmt"
"io"
"io/ioutil"
"log"
"os"
@ -73,7 +72,7 @@ func main() {
// it is allowable, and not uncommon that there is further padding on the
// end of an archive, apart from the expected 1024 null bytes
remainder, err := ioutil.ReadAll(fh)
remainder, err := io.ReadAll(fh)
if err != nil && err != io.EOF {
log.Fatal(err, fh.Name())
}