Skip to content

Commit 1869c69

Browse files
12yagopherbot
authored andcommitted
all: replace deprecated ioutil
Change-Id: I1beb9f5e759127a48c4e5ea0613a5a466886b7c5 GitHub-Last-Rev: 58038b6 GitHub-Pull-Request: #28 Reviewed-on: https://go-review.googlesource.com/c/sync/+/674815 Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> Reviewed-by: Sean Liao <[email protected]> Auto-Submit: Alan Donovan <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent d1ac909 commit 1869c69

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)