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