摘要:断断续续理了一下关于channel的一些概念,现在可以把下面的程序理清楚了。1. source code这个程序来自于《Go语言程序设计》 7.2.2 并发的Grep, 程序如下。package mainimport ( "bufio" "bytes" "fmt" "io" ...
阅读全文
09 2014 档案
摘要:I spent several hours to figure out some conceptions about channel tonight1. buffered channel and non-buffered channelbuffered channelbufferedchan := ...
阅读全文

浙公网安备 33010602011771号