replace Println with Printf

This commit is contained in:
madneal 2021-03-01 21:59:47 +08:00
parent 021592c237
commit eb4cece0f9

View File

@ -71,7 +71,7 @@ func ParsePass(Info *HostInfo) {
func Readfile(filename string) ([]string, error) {
file, err := os.Open(filename)
if err != nil {
fmt.Println("Open %s error, %v", filename, err)
fmt.Printf("Open %s error, %v\n", filename, err)
os.Exit(0)
}
defer file.Close()