diff options
Diffstat (limited to 'libgo/go/sync/example_test.go')
-rw-r--r-- | libgo/go/sync/example_test.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgo/go/sync/example_test.go b/libgo/go/sync/example_test.go index 031c87f03b1..bdd3af6feda 100644 --- a/libgo/go/sync/example_test.go +++ b/libgo/go/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() { |