/**
 * Filters the list of countries to those with a matching default currency.
 */
Filters the list of countries to those with a matching default currency.
/ ** * Filters the list of countries to those with a matching default currency . * /
func findCountriesByCurrency(countries []common.Country, currency string) []string {
	codes := []string{}
	for _, country := range countries {
		if country.DefaultCurrency == currency && !common.ContainsIgnoreCase(codes, country.Iso_3166_3) {
			codes = append(codes, country.Iso_3166_3)
		}
	}
	sort.Strings(codes)
	return codes
}
func findCountriesByCurrency ( countries [ ] common . Country , currency string ) [ ] string { codes := [ ] string { } for _ , country := range countries { if country . DefaultCurrency == currency && ! common . ContainsIgnoreCase ( codes , country . Iso_3166_3 ) { codes = append ( codes , country . Iso_3166_3 ) } } sort . Strings ( codes ) return codes }
Filters the list of countries to those with a matching default currency.
Filters the list of countries to those with a matching default currency .