diff --git a/client.go b/client.go index 27e1b22..c195378 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ package client import ( "encoding/json" "fmt" - "io/ioutil" + "io" "net/http" "reflect" @@ -58,7 +58,7 @@ func (h *PrivilegeHandler) Fetch() error { return err } - buff, err := ioutil.ReadAll(resp.Body) + buff, err := io.ReadAll(resp.Body) if err != nil { return err }