From 1138458e0ad45bd6893bf1339f2e9457f0588568 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Sun, 14 Apr 2024 22:34:59 +0200 Subject: [PATCH] better i/o handling --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 62f95c7..0dbbfae 100644 --- a/main.go +++ b/main.go @@ -19,6 +19,7 @@ func output(_ *resty.Client, _ string, width, height int, arr [][]Cell) { } fmt.Printf("\n") } + fmt.Printf("------------\n") } func main() { @@ -41,8 +42,7 @@ func main() { }, width, height, 5) // Wait for user input to quit - var input string - fmt.Scanln(&input) + fmt.Scanln() // Stop Game of Life, wait for routine done <- true