code: func confirmOne(confirms <-chan amqp.Confirmation) {
  	log.Printf("waiting for confirmation of one publishing")
  
  	if confirmed := <-confirms; confirmed.Ack {
  		log.Printf("confirmed delivery with delivery tag: %d", confirmed.DeliveryTag)
  	} else {
  		log.Printf("failed delivery of delivery tag: %d", confirmed.DeliveryTag)
  	}
  }
docs: // One would typically keep a channel of publishings, a sequence number, and a
  // set of unacknowledged sequence numbers and loop until the publishing channel
  // is closed.