remove io/ioutil.

This commit is contained in:
Miroslav Šedivý
2021-08-29 17:12:37 +02:00
parent 343b0c562a
commit 0501091c96
4 changed files with 9 additions and 10 deletions

View File

@ -2,7 +2,7 @@ package utils
import (
"bytes"
"io/ioutil"
"io"
"net/http"
)
@ -13,7 +13,7 @@ func HttpRequestGET(url string) (string, error) {
}
defer rsp.Body.Close()
buf, err := ioutil.ReadAll(rsp.Body)
buf, err := io.ReadAll(rsp.Body)
if err != nil {
return "", err
}