update to 1.16 and removes usage of "io/ioutil"

This commit is contained in:
Tnze
2021-02-25 12:43:39 +08:00
parent 178c34eacb
commit 9b6f640843
10 changed files with 34 additions and 21 deletions

View File

@ -1,6 +1,6 @@
package realms
import "io/ioutil"
import "io"
// Available returns whether the user can access the Minecraft Realms service
func (r *Realms) Available() (ok bool, err error) {
@ -19,7 +19,7 @@ func (r *Realms) Compatible() (string, error) {
}
defer resp.Body.Close()
rp, err := ioutil.ReadAll(resp.Body)
rp, err := io.ReadAll(resp.Body)
return string(rp), err
}