{"id":23810319,"url":"https://github.com/iftekhersunny/go_country","last_synced_at":"2025-07-02T07:36:58.286Z","repository":{"id":57483447,"uuid":"91220786","full_name":"IftekherSunny/go_country","owner":"IftekherSunny","description":"Country is the package that helps you to get country name and dialling code by the country ISO 3166-1 Alpha-2 code.","archived":false,"fork":false,"pushed_at":"2017-10-31T05:05:53.000Z","size":13,"stargazers_count":14,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-21T03:10:54.649Z","etag":null,"topics":["country","country-codes","country-names","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IftekherSunny.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-14T04:51:54.000Z","updated_at":"2023-09-26T04:07:47.000Z","dependencies_parsed_at":"2022-08-27T20:02:49.311Z","dependency_job_id":null,"html_url":"https://github.com/IftekherSunny/go_country","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherSunny%2Fgo_country","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherSunny%2Fgo_country/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherSunny%2Fgo_country/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IftekherSunny%2Fgo_country/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IftekherSunny","download_url":"https://codeload.github.com/IftekherSunny/go_country/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232137217,"owners_count":18477791,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["country","country-codes","country-names","go","golang"],"created_at":"2025-01-02T00:14:01.150Z","updated_at":"2025-01-02T00:14:01.780Z","avatar_url":"https://github.com/IftekherSunny.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Country\n\n[![Project status](https://img.shields.io/badge/release-v1.0-green.svg)](https://github.com/IftekherSunny/go_country/releases)\n[![Build Status](https://travis-ci.org/IftekherSunny/go_country.svg?branch=master)](https://travis-ci.org/IftekherSunny/go_country)\n[![cover.run go](https://cover.run/go/github.com/IftekherSunny/go_country.svg)](https://cover.run/go/github.com/IftekherSunny/go_country)\n[![Go Report Card](https://goreportcard.com/badge/github.com/IftekherSunny/go_country)](https://goreportcard.com/report/github.com/IftekherSunny/go_country)\n[![GoDoc](https://godoc.org/github.com/IftekherSunny/go_country?status.svg)](https://godoc.org/github.com/IftekherSunny/go_country)\n[![License](https://img.shields.io/dub/l/vibe-d.svg)](https://github.com/IftekherSunny/go_country/blob/master/LICENSE)\n\nCountry is the package that helps you to get country name and dialing code by the country ISO 3166-1 Alpha-2 code.\n\n### Installation Process\n\n```\n go get github.com/IftekherSunny/go_country\n```\n\n### Basic Uses\n\n##### Get all countries name and dialing code\n\n```go\ncountry := country.NewCountry()\n\ncountries := country.All()\n```\n\n##### Get a country name and dialing code\n\n```go\ncountry := country.NewCountry()\n\ncountryDetails, _ := country.Get(\"BD\")\n```\n\n##### Get multiple countries name and dialing code\n\n```go\ncountry := country.NewCountry()\n\ncountries, _ := country.Get([]string{\"BD\", \"US\"})\n```\n\n##### Get a country name\n\n```go\ncountry := country.NewCountry()\n\nname, _ := country.GetName(\"BD\")\n```\n\n##### Get a country dialing code\n\n```go\ncountry := country.NewCountry()\n\ndialingCode, _ := country.GetDialingCode(\"BD\")\n```\n\n### Test\n\n##### Run tests\n\n```\ngo test -v\n```\n\n### License\nThis package is licensed under the [MIT License](https://github.com/iftekhersunny/country-for-golang/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiftekhersunny%2Fgo_country","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiftekhersunny%2Fgo_country","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiftekhersunny%2Fgo_country/lists"}