From e86910f6e0992337c22d3f5f46f1dd6761a1e599 Mon Sep 17 00:00:00 2001 From: SputNikPlop <100245448+SputNikPlop@users.noreply.github.com> Date: Mon, 6 May 2024 12:03:45 -0700 Subject: [PATCH] fix: deprecate ioutil --- helix.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helix.go b/helix.go index 6e3041b..e36dad5 100644 --- a/helix.go +++ b/helix.go @@ -6,7 +6,7 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" + "io" "log" "net/http" "reflect" @@ -364,7 +364,7 @@ func (c *Client) doRequest(req *http.Request, resp *Response) error { setResponseStatusCode(resp, "StatusCode", response.StatusCode) - bodyBytes, err := ioutil.ReadAll(response.Body) + bodyBytes, err := io.ReadAll(response.Body) if err != nil { return err }