chore: 弃用 ioutil
This commit is contained in:
parent
2302575edf
commit
663d103dc9
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user