Re: [go-nuts] chan chan question

2020-06-22 Thread joe mcguckin
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. To view this discussion on the web visit https://groups.go

Re: [go-nuts] chan chan question

2020-06-22 Thread 'Thomas Bushnell, BSG' via golang-nuts
You can send any object you like across a channel of the appropriate type. It sends the actual object (in this case, the channel) just as for an integer, it sends the value, or for a map, the whole map. errChan in the snippet you quote is an ordinary variable, and this is its declaration (like any

[go-nuts] chan chan question

2020-06-22 Thread joe mcguckin
I've been playing with this example code on the playground: https://play.golang.org/p/4l57Hqw9CLJ In func 'goroutine': select { case errChan := <-requestChan: How does this work? Does a channel send its name? Is 'errChan' some sort of special symbol? -- You received this mess