diff --git a/main.go b/main.go index 6377540..c1e9596 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,17 @@ func main() { // Initialize resty client client := resty.New() + // Run Game of Life + done := setup(func(c [][]Cell) { + output(client, url, width, height, c) + }, width, height, 5) + // Wait for user input to quit + var input string + fmt.Scanln(&input) + // Stop Game of Life, wait for routine + done <- true + <-done // // Initialize custom matrix data // col := Color{R: 255, G: 0, B: 255, Endpoint: COLOR}