diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-11-06 19:49:01 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2013-11-06 19:49:01 +0000 |
commit | f038dae646bac2b31be98ab592c0e5206d2d96f5 (patch) | |
tree | 39530b071991b2326f881b2a30a2d82d6c133fd6 /libgo/go/sync/example_test.go | |
parent | f20f261304993444741e0f0a14d3147e591bc660 (diff) | |
download | gcc-f038dae646bac2b31be98ab592c0e5206d2d96f5.tar.gz |
libgo: Update to October 24 version of master library.
From-SVN: r204466
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() { |