{"id":18684949,"url":"https://github.com/tknf/japhonex-go","last_synced_at":"2025-06-14T20:37:58.701Z","repository":{"id":113903510,"uuid":"469070451","full_name":"tknf/japhonex-go","owner":"tknf","description":"Japanese phone number checker for Go.","archived":false,"fork":false,"pushed_at":"2022-03-12T14:07:18.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-18T18:47:31.200Z","etag":null,"topics":["go","japanese","phonenumber","regex"],"latest_commit_sha":null,"homepage":null,"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/tknf.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":"2022-03-12T12:02:54.000Z","updated_at":"2022-03-12T13:53:22.000Z","dependencies_parsed_at":"2023-06-09T05:30:43.413Z","dependency_job_id":null,"html_url":"https://github.com/tknf/japhonex-go","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tknf/japhonex-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fjaphonex-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fjaphonex-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fjaphonex-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fjaphonex-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tknf","download_url":"https://codeload.github.com/tknf/japhonex-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknf%2Fjaphonex-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259880394,"owners_count":22925932,"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":["go","japanese","phonenumber","regex"],"created_at":"2024-11-07T10:19:49.872Z","updated_at":"2025-06-14T20:37:58.640Z","avatar_url":"https://github.com/tknf.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Japhonex Go\n\nJapanese phone number checker for Go.\n\n## Installation\n```bash\n$ go get github.com/tknf/japhonex-go\n```\n\n## Usage\nIn your Go app you can do something like:\n```go\nimport (\n  \"fmt\"\n\n  \"github.com/tknf/japhonex-go\"\n)\n\nfunc main() {\n  result, err := japhonex.OptionalHyphen(\"\u003cPhone number input\u003e\")\n\n  if err != nil {\n    fmt.Println(err)\n  }\n\n  if result == true {\n    // validation is passed\n  }\n}\n```\n\n### Hyphen validation patterns\n### Optional\n```go\nresult, err := japhonex.OptionalHyphen(\"\u003cInput\u003e\")\n// 0xx-xxxx-xxxx or 0xxxxxxxxxx\n```\n### Required\n```go\nresult, err := japhonex.RequireHyphen(\"\u003cInput\u003e\")\n// 0xx-xxxx-xxxx\n```\n### No hyphen\n```go\nresult, err := japhonex.NoHyphen(\"\u003cInput\u003e\")\n// 0xxxxxxxxxx\n```\n\n## Licence\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknf%2Fjaphonex-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftknf%2Fjaphonex-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknf%2Fjaphonex-go/lists"}