func NewConsumer(addrs []string, groupID string, topics []string, config *Config) (*Consumer, error) {
	client, err := NewClient(addrs, config)
	if err != nil {
		return nil, err
	}

	consumer, err := NewConsumerFromClient(client, groupID, topics)
	if err != nil {
		return nil, err
	}
	consumer.ownClient = true
	return consumer, nil
}
func NewConsumer(addrs []string, groupID string, topics []string, config *Config) (*Consumer, error) {
	client, err := NewClient(addrs, config)
	if err != nil {
		return nil, err
	}

	consumer, err := NewConsumerFromClient(client, groupID, topics)
	if err != nil {
		return nil, err
	}
	consumer.ownClient = true
	return consumer, nil
}
func NewConsumer ( addrs [ ] string , groupID string , topics [ ] string , config * Config ) ( * Consumer , error ) { client , err := NewClient ( addrs , config ) if err != nil { return nil , err } consumer , err := NewConsumerFromClient ( client , groupID , topics ) if err != nil { return nil , err } consumer . ownClient = true return consumer , nil }
// NewConsumer initializes a new consumer
NewConsumer initializes a new consumer