all goroutines are asleep - deadlock!

Factorial in GoLang with Channel and Concurrency :: all goroutines are asleep - deadlock!
I am trying to write program to find Factorial of numbers ranging from 0 to 5 . My goal is to write program in a way where it launches separate GO Routine for each number and then i should be able to collect o/p from channel and print it. I am able to write program but i am getting ERROR "all goroutines are asleep - deadlock!". Need help in understanding what else can i do to synchronize all go routines.

Code @ https://play.golang.org/p/MTzTuroxE5

Comments (1)