1
0
mirror of https://github.com/golang/go synced 2024-11-18 15:24:41 -07:00

sync/atomic: remove test dependency on net/http

Depending on net/http means depending on cgo.
When the tree is in a shaky state it's nice to see sync/atomic
pass even if cgo or net causes broken binaries.

R=golang-dev, dave, r
CC=golang-dev
https://golang.org/cl/10753044
This commit is contained in:
Russ Cox 2013-07-01 17:27:19 -04:00
parent aec6b49aae
commit 20498ed772

View File

@ -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() {