blob: 0acef691a3bec37ea7f5c1d77382c27daaa26db0 [file] [log] [blame]
package netconfig_test
import (
"fmt"
"log"
"veyron/runtimes/google/lib/netconfig"
)
func ExampleNetConfigWatcher() {
w, err := netconfig.NewNetConfigWatcher()
if err != nil {
log.Fatalf("oops: %s", err)
}
fmt.Println("Do something to your network. You should see one or more dings.")
for {
<-w.Channel()
fmt.Println("ding")
}
}