better i/o handling

This commit is contained in:
Baipyrus 2024-04-14 22:34:59 +02:00
parent c97d6c68e9
commit 1138458e0a

View File

@ -19,6 +19,7 @@ func output(_ *resty.Client, _ string, width, height int, arr [][]Cell) {
} }
fmt.Printf("\n") fmt.Printf("\n")
} }
fmt.Printf("------------\n")
} }
func main() { func main() {
@ -41,8 +42,7 @@ func main() {
}, width, height, 5) }, width, height, 5)
// Wait for user input to quit // Wait for user input to quit
var input string fmt.Scanln()
fmt.Scanln(&input)
// Stop Game of Life, wait for routine // Stop Game of Life, wait for routine
done <- true done <- true