code: func (ac *AMQPConnector) Close(channel *amqp.Channel, conn *amqp.Connection) error {
  	if channel != nil {
  		if err := channel.Close(); err != nil {
  			return fmt.Errorf("Close channel error: %s", err)
  		}
  	}
  
  	if conn != nil {
  		if err := conn.Close(); err != nil {
  			return fmt.Errorf("Close connection error: %s", err)
  		}
  	}
  
  	return nil
  }
docs: // Close connection