Switch to io

This commit is contained in:
video-prize-ranch 2023-08-29 19:27:59 -04:00 committed by orangix
parent ff254c1714
commit 1cadb417b9
No known key found for this signature in database
GPG Key ID: C31D4A86601C8416

View File

@ -1,7 +1,7 @@
package api
import (
"io/ioutil"
"io"
"net/http"
"net/url"
"strings"
@ -60,7 +60,7 @@ func (client *Client) FetchTag(tag string, sort string, page string) (Tag, error
return Tag{}, err
}
body, err := ioutil.ReadAll(res.Body)
body, err := io.ReadAll(res.Body)
if err != nil {
return Tag{}, err
}