Re: [go-nuts] Channels of multiple values

2016-12-20 Thread Florin Pățan
An even better solution is to return a struct with the fields that you need. -- 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.

Re: [go-nuts] Channels of multiple values

2016-12-18 Thread slav . isv
I know this is an old post, just thought to share possible work around. Idea is basically return a func that will return multiple values. I'm not sure how much performance overhead this will create and it's a little bit ugly, but works as intended. func f(c chan func() (int, string)) { c <- (fu