diff --git a/05_blank-identifier/02_http-get_example/01_with-error-checking/main.go b/05_blank-identifier/02_http-get_example/01_with-error-checking/main.go index 5e75b203..e95cfb7a 100644 --- a/05_blank-identifier/02_http-get_example/01_with-error-checking/main.go +++ b/05_blank-identifier/02_http-get_example/01_with-error-checking/main.go @@ -2,7 +2,7 @@ package main import ( "fmt" - "io/ioutil" + "io" "log" "net/http" ) @@ -12,7 +12,7 @@ func main() { if err != nil { log.Fatal(err) } - page, err := ioutil.ReadAll(res.Body) + page, err := io.ReadAll(res.Body) res.Body.Close() if err != nil { log.Fatal(err)