Replace io/ioutil with io

This commit is contained in:
video-prize-ranch 2023-12-06 20:02:41 -05:00
parent dd78541a46
commit e1a694556c
No known key found for this signature in database

View File

@ -1,7 +1,7 @@
package api
import (
"io/ioutil"
"io"
"net/http"
"strings"
"sync"
@ -57,7 +57,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
}