From e8758395c17c6cc095e7d2df679bae1218706eb6 Mon Sep 17 00:00:00 2001 From: jongyunha Date: Mon, 2 Sep 2024 16:21:14 +0900 Subject: [PATCH] concurrency/bounded_parallelism: replace deprecated method: updated [ioutil] to [os] --- concurrency/bounded_parallelism.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/concurrency/bounded_parallelism.go b/concurrency/bounded_parallelism.go index 8ddbef5..1352c7a 100644 --- a/concurrency/bounded_parallelism.go +++ b/concurrency/bounded_parallelism.go @@ -4,7 +4,6 @@ import ( "crypto/md5" "errors" "fmt" - "io/ioutil" "os" "path/filepath" "sort" @@ -50,7 +49,7 @@ type result struct { // files on c until either paths or done is closed. func digester(done <-chan struct{}, paths <-chan string, c chan<- result) { for path := range paths { // HLpaths - data, err := ioutil.ReadFile(path) + data, err := os.ReadFile(path) select { case c <- result{path, md5.Sum(data), err}: case <-done: