Update example.go 

In Go 1.2 I found it was not possible to use the form :
time.Duration(10)*time.Second in the client connection call.

Instead using time.ParseDuration("10s) achieves the same result.