From f7a28d5557e26edf63e390dba4e9e2a3b5c3c4a4 Mon Sep 17 00:00:00 2001 From: shreeharsha-factly Date: Mon, 8 Jul 2024 23:22:03 +0530 Subject: [PATCH] remove deprecated io/ioutil --- util/subscribe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/subscribe.go b/util/subscribe.go index 398b9a8..b11e238 100644 --- a/util/subscribe.go +++ b/util/subscribe.go @@ -3,7 +3,7 @@ package util import ( "encoding/json" "fmt" - "io/ioutil" + "io" "net/http" "strings" "time" @@ -143,7 +143,7 @@ func PostWebhook(wh model.Webhook, event string, whData model.WebhookData) { webHookLog.ResponseStatusCode = resp.StatusCode - body_bytes, err := ioutil.ReadAll(resp.Body) + body_bytes, err := io.ReadAll(resp.Body) if err != nil { fmt.Println(err.Error()) return