code: func mergeAccounts(bases, overrides []TemplateAccount) []TemplateAccount {
  	indexOfBase := make(map[string]int, len(bases))
  	for i, ta := range bases {
  		if ta.Name != "" {
  			indexOfBase[ta.Name] = i
  		}
  	}
  
  	for _, override := range overrides {
  		if override.Name != "" {
  			if i, ok := indexOfBase[override.Name]; ok {
  				bases[i] = mergeAccount(bases[i], override)
  				continue
  			}
  		}
  		bases = append(bases, override)
  	}
  	return bases
  }
docs: // Merge accounts by adding to base list or updating previously named account