mirror of
https://github.com/Direct-Dev-Ru/go-lcg.git
synced 2025-11-16 01:29:55 +00:00
chore: set default options to (N)o execute
This commit is contained in:
6
main.go
6
main.go
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user