fix code formatting
This commit is contained in:
@@ -61,7 +61,7 @@ goroutines run in the same memory address space, so you have to maintain synchro
|
|||||||
cf := make(chan interface{})
|
cf := make(chan interface{})
|
||||||
```
|
```
|
||||||
channel uses the operator `<-` to send or receive data.
|
channel uses the operator `<-` to send or receive data.
|
||||||
```Go`
|
```Go
|
||||||
ch <- v // send v to channel ch.
|
ch <- v // send v to channel ch.
|
||||||
v := <-ch // receive data from ch, and assign to v
|
v := <-ch // receive data from ch, and assign to v
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user