var Web … var Image … var Video … type Result … type Search … func fakeSearch(kind string) Search { … } // JustErrors illustrates the use of a Group in place of a sync.WaitGroup to // simplify goroutine counting and error handling. This example is derived from // the sync.WaitGroup example at https://golang.org/pkg/sync/#example_WaitGroup. func ExampleGroup_justErrors() { … } // Parallel illustrates the use of a Group for synchronizing a simple parallel // task: the "Google Search 2.0" function from // https://talks.golang.org/2012/concurrency.slide#46, augmented with a Context // and error-handling. func ExampleGroup_parallel() { … } func TestZeroGroup(t *testing.T) { … } func TestWithContext(t *testing.T) { … } func TestTryGo(t *testing.T) { … } func TestGoLimit(t *testing.T) { … } func BenchmarkGo(b *testing.B) { … }