goc2p icon indicating copy to clipboard operation
goc2p copied to clipboard

An example project for book 'Go Programming & Concurrency in Practice'.

Results 15 goc2p issues
Sort by recently updated
recently updated
newest added

goc2p/src/multiproc/apipe/apipe.go demo2 为何会阻塞住?

a multiproc apipe bug: outputBuf1.WriteTo(stdin2) write output of command1 before commond2 start will make the process block

regex := regexp.MustCompilePOSIX("([a-z])\\1") panic: regexp: CompilePOSIX(`([a-z])\1`): error parsing regexp: invalid escape sequence: `\1` 这个语句会导致这个panic,golang似乎对正则支持不太友好,有什么好的方法吗?

Just ran gofmt -w . on the project root. That's all. https://blog.golang.org/go-fmt-your-code --- > I made this PR with a project going on over at https://github.com/rotblauer/gofmt-att, and it's definitely a...

并发量 = 单个载荷的响应超时时间 / 载荷的发送间隔时间 1e9 / lps 代表了发送的间隔, 对这一段有疑问? a) lps是发送频率可以理解,1e9 / lps 代表了发送的间隔 为什么这个可以作为发送间隔? b)并发量 的公式 也是不理解? 另外再后续实现代码里, func (gen *myGenerator) genLoad(throttle

Otherwise, monitor might start running before scheduler is fully started and query those components which are not initialized. It will run into a panic.