Skip to content

Commit

Permalink
📝 Docs: update io/ioutil package to io package (#2589)
Browse files Browse the repository at this point in the history
Deprecation of io/ioutil
  • Loading branch information
LimJiAn authored Aug 22, 2023
1 parent 1dea615 commit 35797e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/app.md
Original file line number Diff line number Diff line change
Expand Up @@ -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!
}
```
Expand Down

0 comments on commit 35797e6

Please sign in to comment.