Rit*_*rja 0 arguments function channel go
这段代码与函数参数中的channel运算符有关:
func Worker(item <- chan string)
而这个代码在函数参数中没有通道运算符:
func Worker(item chan string)
lea*_*bop 5
可选的< - 运算符指定通道方向,发送或接收.如果没有给出方向,则通道是双向的.频道可能仅限于发送或仅通过转换或分配来接收.
来自golang规范:https://golang.org/ref/spec#Channel_types
归档时间:
7 年,10 月 前
查看次数:
61 次
最近记录: