Replace io/ioutil with io (#159)
io/ioutil is deprecated Reviewed-on: https://codeberg.org/rimgo/rimgo/pulls/159
This commit is contained in:
parent
f5e1669a61
commit
c366f95f6b
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue