{"id":22509185,"url":"https://github.com/adrg/postcode","last_synced_at":"2025-08-03T13:31:15.437Z","repository":{"id":11080552,"uuid":"63158482","full_name":"adrg/postcode","owner":"adrg","description":"Small Golang package for validating postal codes","archived":false,"fork":false,"pushed_at":"2024-03-20T16:09:45.000Z","size":31,"stargazers_count":13,"open_issues_count":5,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-18T20:08:16.874Z","etag":null,"topics":["go","golang","matching","postal-codes","postcode","validation","zip","zipcode"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/adrg/postcode","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/adrg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"ko_fi":"adrgb"}},"created_at":"2016-07-12T13:05:07.000Z","updated_at":"2024-01-30T15:34:35.000Z","dependencies_parsed_at":"2023-12-07T16:31:00.489Z","dependency_job_id":"611381d1-db17-4236-a9d8-f5aaf2bdb903","html_url":"https://github.com/adrg/postcode","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/adrg%2Fpostcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fpostcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fpostcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adrg%2Fpostcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adrg","download_url":"https://codeload.github.com/adrg/postcode/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228547949,"owners_count":17935151,"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","golang","matching","postal-codes","postcode","validation","zip","zipcode"],"created_at":"2024-12-07T01:28:02.544Z","updated_at":"2024-12-07T01:28:03.226Z","avatar_url":"https://github.com/adrg.png","language":"Go","readme":"postcode\n========\n[![Build Status](https://github.com/adrg/postcode/workflows/CI/badge.svg)](https://github.com/adrg/postcode/actions?query=workflow%3ACI)\n[![Code coverage](https://codecov.io/gh/adrg/postcode/branch/master/graphs/badge.svg?branch=master)](https://codecov.io/gh/adrg/postcode)\n[![pkg.go.dev documentation](https://pkg.go.dev/badge/github.com/adrg/postcode)](https://pkg.go.dev/github.com/adrg/postcode)\n[![MIT License](https://img.shields.io/badge/license-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n[![Go report card](https://goreportcard.com/badge/github.com/adrg/postcode)](https://goreportcard.com/report/github.com/adrg/postcode)\n[![GitHub issues](https://img.shields.io/github/issues/adrg/postcode)](https://github.com/adrg/postcode/issues)\n[![Buy me a coffee](https://img.shields.io/static/v1.svg?label=%20\u0026message=Buy%20me%20a%20coffee\u0026color=579fbf\u0026logo=buy%20me%20a%20coffee\u0026logoColor=white)](https://ko-fi.com/T6T72WATK)\n\nSmall package for validating postal codes. While the validation process does\nnot guarantee that the postcode actually exists, it does guarantee that the\nformat of the provided input is valid.\n\nThe reason for creating this package is that there is no good regular\nexpression for validating postal codes, and even if it existed, it would have\nbeen huge and inefficient.\n\nFull documentation can be found at: https://pkg.go.dev/github.com/adrg/postcode.\n\n## Installation\n    go get github.com/adrg/postcode\n\n## Usage\n\n```go\npackage main\n\nimport (\n\t\"github.com/adrg/postcode\"\n)\n\nfunc main() {\n    if err := postcode.Validate(\"10007\"); err != nil {\n        // Treat error.\n    }\n}\n```\n\n## References\nFor more information see\n* [Wikipedia's List of postal codes](https://en.wikipedia.org/wiki/List_of_postal_codes)\n* [Wikipedia's List of country codes](https://en.wikipedia.org/wiki/ISO_3166-1)\n\n## Contributing\n\nContributions in the form of pull requests, issues or just general feedback,\nare always welcome.  \nSee [CONTRIBUTING.MD](CONTRIBUTING.md).\n\n## License\nCopyright (c) 2016 Adrian-George Bostan.\n\nThis project is licensed under the [MIT license](https://opensource.org/licenses/MIT).\nSee [LICENSE](LICENSE) for more details.\n","funding_links":["https://ko-fi.com/adrgb","https://ko-fi.com/T6T72WATK"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrg%2Fpostcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrg%2Fpostcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrg%2Fpostcode/lists"}