Go Concurrency Patterns: Timing out, moving on  GO并发模式: 超时, 继续前进 23 September 2010 Concurrent programming has its own idioms. A good example is timeouts. Although Go's channels do not support them directly, they are easy to implement. Say we want to…
https://blog.golang.org/go-concurrency-patterns-timing-out-and…
https://blog.golang.org/pipelines Go Concurrency Patterns: Pipelines and cancellation Sameer Ajmani13 March 2014 Introduction Go's concurrency primitives make it easy to construct streaming data pipelines that make efficient use of I/O and multiple C…
小结: 1. Background is the root of any Context tree; it is never canceled: 2.     https://blog.golang.org/context Sameer Ajmani29 July 2014 Introduction In Go servers, each incoming request is handled in its own goroutine. Request handlers often start…
https://blog.golang.org/context Introduction In Go servers, each incoming request is handled in its own goroutine. Request handlers often start additional goroutines to access backends such as databases and RPC services. The set of goroutines working…
https://talks.golang.org/2013/advconc.slide#5 It's easy to go, but how to stop? Long-lived programs need to clean up. Let's look at how to write programs that handle communication, periodic events, and cancellation. The core is Go's select statement:…
Introducing the Go Race Detector 26 June 2013 Introduction Race conditions are among the most insidious and elusive programming errors. They typically cause erratic and mysterious failures, often long after the code has been deployed to production. W…
Godoc: documenting Go code  编写良好的文档关于godoc 31 March 2011 The Go project takes documentation seriously. Documentation is a huge part of making software accessible and maintainable. Of course it must be well-written and accurate, but it also must be ea…
Profiling Go Programs  分析go语言项目 24 June 2011 At Scala Days 2011, Robert Hundt presented a paper titled Loop Recognition in C++/Java/Go/Scala. The paper implemented a specific loop finding algorithm, such as you might use in a flow analysis pass of a…
C? Go? Cgo! 17 March 2011 Introduction Cgo lets Go packages call C code. Given a Go source file written with some special features, cgo outputs Go and C files that can be combined into a single Go package. To lead with an example, here's a Go package…