On Sun, Aug 2, 2020 at 9:56 PM Anjana Prabhakar <prabhakar.anj...@gmail.com>
wrote:

> Dear All,
>
> Can someone help me understand the syntax
>
>> a <- b
>> b := <-a
>
>
The "<-" operator is the channel receive operator. See
https://golang.org/ref/spec#Channel_types and
https://golang.org/ref/spec#Receive_operator. Those statements are
retrieving the next value from a channel and assigning it to a variable. I
recommend working through every example at https://tour.golang.org/
<https://tour.golang.org/welcome/1>. That is the easiest, quickest, way to
gain a basic understanding of the Go language. Your question is addressed
by the concurrency section of the tour:
https://tour.golang.org/concurrency/1.

-- 
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank

-- 
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.google.com/d/msgid/golang-nuts/CABx2%3DD8FQ2gHW4HJjidWuvO0uBeM4Xv5sL_bMUBLAmc9-uDD%2Bw%40mail.gmail.com.

Reply via email to