diff --git a/main.go b/main.go index 103194a..b8cd2ab 100644 --- a/main.go +++ b/main.go @@ -3,7 +3,7 @@ package main import ( "encoding/json" "fmt" - "io/ioutil" + "io" "net/http" "os" "regexp" @@ -122,7 +122,7 @@ func addServer(server string) error { return err } defer resp.Body.Close() - body, err := ioutil.ReadAll(resp.Body) + body, err := io.ReadAll(resp.Body) if err != nil { return err }