Created
November 30, 2020 01:06
-
-
Save minhphong306/f7f4e14ccf313a4108c1e90df61b750d to your computer and use it in GitHub Desktop.
write_rap_song_produce_beat.go
This file contains 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
func produceBeat(numBeat int, beatChannel chan string) { | |
for i := 1; i <= numBeat; i++ { | |
wait() | |
fmt.Println("Tạo ra beat số: ", i) | |
beatChannel <- fmt.Sprintf("Beat %d", i) | |
} | |
close(beatChannel) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment