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