From 14fed9252491d62fafa3ce23da5dd83e43ce84a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorben=20G=C3=BCnther?= Date: Thu, 20 Oct 2022 16:10:57 +0200 Subject: [PATCH] Update deprecated functions io/ioutil -> io --- graph/schema.resolvers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/schema.resolvers.go b/graph/schema.resolvers.go index 109eb9a..30cc420 100644 --- a/graph/schema.resolvers.go +++ b/graph/schema.resolvers.go @@ -9,7 +9,7 @@ import ( "encoding/json" "errors" "fmt" - "io/ioutil" + "io" "math/rand" "net/http" "time" @@ -39,7 +39,7 @@ func (r *mutationResolver) CreateUser(ctx context.Context, input model.NewUser) return "", errors.New("wrong steamID64") } - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return "", err } -- 2.44.0