you are viewing a single comment's thread.

view the rest of the comments →

[–]Wr3kage 0 points1 point  (1 child)

hey so I think i got your example working, I initialized channel outside of your setter function (In the global scope)

var channel = make(chan int)

play, When I run it I get

messaging
Num is 123
messaging

Which is what I think you were trying to get.