From 663d103dc9de544297b3ed2a0cb764ccef7d05aa Mon Sep 17 00:00:00 2001 From: tiglog Date: Sun, 15 Oct 2023 00:32:49 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BC=83=E7=94=A8=20ioutil?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- console/cli_air.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/console/cli_air.go b/console/cli_air.go index ab2a69b..14ece73 100644 --- a/console/cli_air.go +++ b/console/cli_air.go @@ -10,7 +10,6 @@ package console import ( "flag" "fmt" - "io/ioutil" "os" "os/exec" @@ -79,7 +78,7 @@ func (c *cAir) initConfCmd(args []string) { fmt.Printf("Conf file %s exists, SKIP\n\n", *output) } else { fmt.Printf("Writing conf to %s ...\n", *output) - ioutil.WriteFile(*output, []byte(conf), 0644) + os.WriteFile(*output, []byte(conf), 0644) fmt.Println("Done") } }