StringChan and StringSendingChan are named types and so you will need a
conversion. It would be easier though to just not declare types here.
You don't need them.

https://play.golang.org/p/0dBHgsaP0v

On Thu, 2017-09-28 at 17:19 -0700, lmumar wrote:
> Hi all,
> 
> Good day to you all. I just recently coded again in Go after trying
> out 
> other languages. I went back to Go because it's easy and
> straightforward. I 
> was going through a tutorial related to channels and tried something 
> different by declaring my channels with type statement but I hit a
> compile 
> time error. I apologize in advance if this has been asked before, but
> you 
> can see what I'm trying to do in this link - 
> https://play.golang.org/p/Dmv5WKFXqu
> 
> thanks,



-- 
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.

Reply via email to