2016年4月22日
摘要: go channel缓冲区的大小 len也可以作用于channel,代表现在channel缓冲区中还有多少数据没有读取.示例如下 go c:=make(chan int,20) fmt.Println("len:",len(c)) //0 c 阅读全文
posted @ 2016-04-22 21:28 baizx 阅读(2077) 评论(0) 推荐(0) 编辑