This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func worker(row int, input chan int, output chan int, done chan int) { | |
display := "" | |
previous := 0 | |
for i := 0; i < row+1; i++ { | |
read := <-input | |
display += fmt.Sprintf("%d ", read) |