// MergeMHConfigs merges an arbitrary number of MHConfigs with rising priority.
MergeMHConfigs merges an arbitrary number of MHConfigs with rising priority.
// MergeMHConfigs merges an arbitrary number of MHConfigs with rising priority .
func MergeMHConfigs(configs ...MHConfig) (*MHConfig, error) {
	if len(configs) < 2 {
		return nil, fmt.Errorf("Can't merge less than two configs")
	}
	result := MHConfig{}
	for _, config := range configs {
		if err := mergo.MergeWithOverwrite(&result, config); err != nil {
			return nil, err
		}
	}
	return &result, nil
}
func MergeMHConfigs ( configs ... MHConfig ) ( * MHConfig , error ) { if len ( configs ) < 2 { return nil , fmt . Errorf ( " " ) } result := MHConfig { } for _ , config := range configs { if err := mergo . MergeWithOverwrite ( & result , config ) ; err != nil { return nil , err } } return & result , nil }
MergeMHConfigs merges an arbitrary number of MHConfigs with rising priority.
MergeMHConfigs merges an arbitrary number of MHConfigs with rising priority .