📝 Docs: update io/ioutil package to io package (#2589)

Deprecation of io/ioutil
pull/2590/head
Jian Lim 2023-08-22 15:57:00 +09:00 committed by GitHub
parent 1dea615ddf
commit 35797e6639
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -643,7 +643,7 @@ resp, _ := app.Test(req)
// Do something with results:
if resp.StatusCode == fiber.StatusOK {
body, _ := ioutil.ReadAll(resp.Body)
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body)) // => Hello, World!
}
```