更新 import "io/ioutil" -> "io"

This commit is contained in:
xiu2
2024-07-22 11:29:36 +08:00
parent f2e87d38d7
commit bf832c5a4e

View File

@@ -3,7 +3,7 @@ package main
import (
"flag"
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"runtime"
@@ -162,7 +162,7 @@ func checkUpdate() {
return
}
// 读取资源数据 body: []byte
body, err := ioutil.ReadAll(res.Body)
body, err := io.ReadAll(res.Body)
if err != nil {
return
}