{"id":23114029,"url":"https://github.com/baorv/phonecode","last_synced_at":"2025-08-08T04:44:01.658Z","repository":{"id":97005348,"uuid":"159107122","full_name":"baorv/phonecode","owner":"baorv","description":"Lookup calling code written in Go","archived":false,"fork":false,"pushed_at":"2018-11-26T03:51:19.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T00:29:05.040Z","etag":null,"topics":["calling-codes","go","lookup"],"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/baorv.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-26T03:50:25.000Z","updated_at":"2018-11-26T03:52:24.000Z","dependencies_parsed_at":"2024-02-12T14:15:11.809Z","dependency_job_id":null,"html_url":"https://github.com/baorv/phonecode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/baorv/phonecode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baorv%2Fphonecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baorv%2Fphonecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baorv%2Fphonecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baorv%2Fphonecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baorv","download_url":"https://codeload.github.com/baorv/phonecode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baorv%2Fphonecode/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269366521,"owners_count":24405239,"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","status":"online","status_checked_at":"2025-08-08T02:00:09.200Z","response_time":72,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["calling-codes","go","lookup"],"created_at":"2024-12-17T03:18:24.262Z","updated_at":"2025-08-08T04:44:01.610Z","avatar_url":"https://github.com/baorv.png","language":"Go","readme":"# Phone code reader for \n\n[![Build Status](https://travis-ci.org/baorv/phonecode.svg?branch=master)](https://travis-ci.org/baorv/phonecode)\n\nThis library helps to lookup calling code of all countries in the world\n\n## Installation\n\n* Go get way\n\n```bash\ngo get github.com/baorv/phonecode\n```\n\n* [Glide](https://github.com/Masterminds/glide) way\n\n```bash\nglide get github.com/baorv/phonecode\n```\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"github.com/baorv/phonecode\"\n\t\"log\"\n)\n\nfunc main() {\n    // You can use custom data\n\t// reader, err := phonecode.New(\"/path/to/customize.csv\")\n\treader, err := phonecode.New()\n\tif err != nil {\n\t\tlog.Panicf(\"Error when open reader with message: %s\", err.Error())\n\t}\n\trecord := reader.LookupPhoneCode(\"VN\")\n\tlog.Printf(\"%s as calling code is: %s\", record.CountryCode, record.Code)\n}\n```\n\n## Testing\n\nExecute test suite:\n\n```bash\ngo test\n```\n\n## Contributing\n\nContributions welcome! Please fork the repository and open a pull request with your changes.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaorv%2Fphonecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaorv%2Fphonecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaorv%2Fphonecode/lists"}