code: func main() {
  
  	// Parse command-line flags; needed to let flags used by Go-Redis be parsed.
  	flag.Parse()
  
  	// create the client.  Here we are using a synchronous client.
  	// Using the default ConnectionSpec, we are specifying the client to connect
  	// to db 13 (e.g. SELECT 13), and a password of go-redis (e.g. AUTH go-redis)
  
  	spec := redis.DefaultSpec().Password("go-redis")
  	channel := "example/pubsub/channel"
  
  	// publish using sync client
  	syncPublish(spec, channel)
  
  	// publish using async client
  	asyncPublish(spec, channel)
  
  }
docs: // PubSub - PubSub message publisher example demonstrates  publishing messages
  // via Redis PubSub's PUBLISH command.  Both sync and async client examples are
  // provided.
  //
  // Messages are published to a Redis channel named "example/pubsub/channel".
  // Ideally, you will want to telnet to the spec'd redis server and subscribe
  // to the same channel.  Each client type will send 100 messages.
  //
  // This example works whether or not there are subscribers to the channel, but
  // naturally the receiver count from Publish() method will depend on the number
  // of subscribers.