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 s
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
"golan