summaryrefslogtreecommitdiff
path: root/src/pkg/sync/example_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/sync/example_test.go')
-rw-r--r--src/pkg/sync/example_test.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pkg/sync/example_test.go b/src/pkg/sync/example_test.go
index 031c87f03..bdd3af6fe 100644
--- a/src/pkg/sync/example_test.go
+++ b/src/pkg/sync/example_test.go
@@ -6,10 +6,15 @@ package sync_test
import (
"fmt"
- "net/http"
"sync"
)
+type httpPkg struct{}
+
+func (httpPkg) Get(url string) {}
+
+var http httpPkg
+
// This example fetches several URLs concurrently,
// using a WaitGroup to block until all the fetches are complete.
func ExampleWaitGroup() {