I am trying to Serve a webpage while running a ticker in the background. I am trying to generate a random number, genRandom() , periodically and publish it on a channel so generic() can see the results. I have something like this https://play.golang.org/p/6d1xmqpUYY7 but I don't know how to get channel results to generic()? Do I need to make my mc channel a global?
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.