Skip to content

Commit 58038b6

Browse files
committed
replace deprecated ioutil
1 parent d1ac909 commit 58038b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

errgroup/errgroup_example_md5all_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"context"
99
"crypto/md5"
1010
"fmt"
11-
"io/ioutil"
1211
"log"
1312
"os"
1413
"path/filepath"
@@ -69,7 +68,7 @@ func MD5All(ctx context.Context, root string) (map[string][md5.Size]byte, error)
6968
for i := 0; i < numDigesters; i++ {
7069
g.Go(func() error {
7170
for path := range paths {
72-
data, err := ioutil.ReadFile(path)
71+
data, err := os.ReadFile(path)
7372
if err != nil {
7473
return err
7574
}

0 commit comments

Comments
 (0)