code: func ClearSession(config *Config, timeout time.Duration) error {
  	// copy config
  	newConfig := *config
  	newConfig.CleanSession = true
  
  	// create client
  	client := New()
  
  	// connect to broker
  	future, err := client.Connect(&newConfig)
  	if err != nil {
  		return err
  	}
  
  	// wait for future
  	err = future.Wait(timeout)
  	if err != nil {
  		return err
  	}
  
  	// disconnect
  	err = client.Disconnect()
  	if err != nil {
  		return err
  	}
  
  	return nil
  }
docs: // ClearSession will connect to the specified broker and request a clean session.