1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

CHORE: Remove deprecated io/ioutil (#1699)

* Remove deprecated io/ioutil

* fixup!

* fixup!
This commit is contained in:
Tom Limoncelli
2022-08-14 12:50:15 -04:00
committed by GitHub
parent 5e8bb6e461
commit cd61c2c766
25 changed files with 77 additions and 85 deletions

View File

@@ -6,7 +6,7 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"time"
)
@@ -71,7 +71,7 @@ func (c *easynameProvider) request(method, uri string, body *bytes.Buffer, resul
return err
}
bodyString, _ := ioutil.ReadAll(resp.Body)
bodyString, _ := io.ReadAll(resp.Body)
json.Unmarshal(bodyString, &result)
status := result.GetStatus()