Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.
go get github.com/IftekherSunny/go_country
country := country.NewCountry()
countries := country.All()
country := country.NewCountry()
countryDetails, _ := country.Get("BD")
country := country.NewCountry()
countries, _ := country.Get([]string{"BD", "US"})
country := country.NewCountry()
name, _ := country.GetName("BD")
country := country.NewCountry()
dialingCode, _ := country.GetDialingCode("BD")
go test -v
This package is licensed under the MIT License