chore: set default options to (N)o execute

This commit is contained in:
asrul10
2023-04-09 10:33:53 +07:00
parent 432bfc61db
commit 2d6fef23aa

View File

@@ -124,14 +124,14 @@ func main() {
return return
} }
c := "Y" c := "N"
elapsed := time.Since(s).Seconds() elapsed := time.Since(s).Seconds()
elapsed = math.Round(elapsed*100) / 100 elapsed = math.Round(elapsed*100) / 100
fmt.Printf("Completed in %v seconds\n\n", elapsed) fmt.Printf("Completed in %v seconds\n\n", elapsed)
fmt.Println(r) fmt.Println(r)
fmt.Print("\nAre you sure you want to execute the command? (Y/n): ") fmt.Print("\nAre you sure you want to execute the command? (y/N): ")
fmt.Scanln(&c) fmt.Scanln(&c)
if c != "Y" && c != "y" { if c == "N" || c == "n" {
return return
} }