From bf832c5a4e5981ed214b6c3aea954d0f4c3a4c7b Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Mon, 22 Jul 2024 11:29:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20import=20"io/ioutil"=20->?= =?UTF-8?q?=20"io"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index aa450a3..9ae5b26 100644 --- a/main.go +++ b/main.go @@ -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 }