Re: [go-nuts] is there any type that cannot be sent on a channel?

2019-06-30 Thread Michal Strba
Not sure where you read that. Anything can be sent on a channel. Even channels can be sent over channels. That's often used when one goroutine needs to reply to a message from another goroutine. ne 30. 6. 2019 o 18:31 Sathish VJ napĂ­sal(a): > I thought I read somewhere that functions cannot be

[go-nuts] is there any type that cannot be sent on a channel?

2019-06-30 Thread Sathish VJ
I thought I read somewhere that functions cannot be sent on channels. But I tried it out and it can be. Play link: https://play.golang.org/p/OeLpQsNwnCn So, is there anything that cannot be sent on channels? -- You received this message because you are subscribed to the Google Groups