mirror of
https://gitlab1.ptb.de/waltem01/Matrix
synced 2024-12-25 11:31:46 +00:00
insert setup call and wait for routine
This commit is contained in:
parent
30e6c4a35b
commit
3403886e48
10
main.go
10
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}
|
||||
|
Loading…
Reference in New Issue
Block a user