All Projects → IftekherSunny → Go_country

IftekherSunny / Go_country

Licence: mit
Country is the package that helps you to get country name and dialling code by the country ISO 3166-1 Alpha-2 code.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Labels

Projects that are alternatives of or similar to Go country

GeoLite2-Country
GeoLite2-Country.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 69 (+527.27%)
Mutual labels:  country
acf-country
ACF Country field - Display a select field of all countries, in any language.
Stars: ✭ 103 (+836.36%)
Mutual labels:  country
Made In Taiwan
[NEED SUPPORT] 🇹🇼 (Taiwan #1) A list of neat projects made in Taiwan (MIT)
Stars: ✭ 261 (+2272.73%)
Mutual labels:  country
covid-rt-estimates
National and subnational estimates of the time-varying reproduction number for Covid-19
Stars: ✭ 31 (+181.82%)
Mutual labels:  country
laravel-localized-routes
A convenient way to set up and use localized routes in a Laravel app.
Stars: ✭ 257 (+2236.36%)
Mutual labels:  country
small-open-datasets
A collection of automatically-updated, ready-to-use and open-licensed datasets
Stars: ✭ 32 (+190.91%)
Mutual labels:  country
country-flag-emoji-json
Country flag emojis in JSON format.
Stars: ✭ 92 (+736.36%)
Mutual labels:  country
Countrypickerview
A simple, customizable view for efficiently collecting country information in iOS apps.
Stars: ✭ 397 (+3509.09%)
Mutual labels:  country
laravel-localizer
Automatically detect and set an app locale that matches your visitor's preference.
Stars: ✭ 34 (+209.09%)
Mutual labels:  country
Countrycodepicker
Country Code Picker (CCP) is an android library which provides an easy way to search and select country phone code ( national code ) for the telephone number.
Stars: ✭ 259 (+2254.55%)
Mutual labels:  country
ip2location-nginx
Nginx module that allows user to lookup for geolocation information using IP2Location database.
Stars: ✭ 33 (+200%)
Mutual labels:  country
IP2Location-PHP-Module
This module is a PHP module that enables the user to find the country, region, city, coordinates, zip code, ISP, domain name, timezone, connection speed, IDD code, area code, weather station code, weather station name, mobile, usage types, address type, IAB category, etc that any IP address or host name originates from.
Stars: ✭ 154 (+1300%)
Mutual labels:  country
jqIpLocation
jqIpLocation – jQuery Plugin that returns the location of an IP address in JSON format
Stars: ✭ 18 (+63.64%)
Mutual labels:  country
world
A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
Stars: ✭ 479 (+4254.55%)
Mutual labels:  country
Country Picker Android
A simple library that displays a beautiful list of all the countries allowing the user to pick the country he wishes and provide details like country code, iso code name,currency and flag.
Stars: ✭ 317 (+2781.82%)
Mutual labels:  country
flagpack
A lightweight flag icon toolkit for the web.
Stars: ✭ 51 (+363.64%)
Mutual labels:  country
PhoneInput
React Native component for international phone input with country phone code and flag.
Stars: ✭ 27 (+145.45%)
Mutual labels:  country
Country Json
A simple data of the world by country each in JSON format.
Stars: ✭ 688 (+6154.55%)
Mutual labels:  country
Flagphonenumber
A formatted phone number UITextField with country flag picker.
Stars: ✭ 371 (+3272.73%)
Mutual labels:  country
react-vector-maps
🗺 A React component for interactive vector maps of the world and 100+ countries
Stars: ✭ 112 (+918.18%)
Mutual labels:  country

Country

Project status Build Status cover.run go Go Report Card GoDoc License

Country is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.

Installation Process

 go get github.com/IftekherSunny/go_country

Basic Uses

Get all countries name and dialing code
country := country.NewCountry()

countries := country.All()
Get a country name and dialing code
country := country.NewCountry()

countryDetails, _ := country.Get("BD")
Get multiple countries name and dialing code
country := country.NewCountry()

countries, _ := country.Get([]string{"BD", "US"})
Get a country name
country := country.NewCountry()

name, _ := country.GetName("BD")
Get a country dialing code
country := country.NewCountry()

dialingCode, _ := country.GetDialingCode("BD")

Test

Run tests
go test -v

License

This package is licensed under the MIT License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].