Replace io/ioutil with io (#159)

io/ioutil is deprecated

Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/159
This commit is contained in:
video-prize-ranch 2023-12-11 03:50:36 +00:00
parent f5e1669a61
commit c366f95f6b
1 changed files with 2 additions and 2 deletions

View File

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