{"id":41022553,"url":"https://github.com/petoc/vago","last_synced_at":"2026-01-22T09:35:27.182Z","repository":{"id":57537068,"uuid":"284744252","full_name":"petoc/vago","owner":"petoc","description":"Collection of simple validators for Go.","archived":false,"fork":false,"pushed_at":"2023-03-02T12:57:20.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-15T07:10:23.246Z","etag":null,"topics":["go","golang","iso","iso-3166-1","iso-3166-2","iso-3166-3","iso-4217","time-zone"],"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/petoc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-08-03T16:01:24.000Z","updated_at":"2023-03-02T12:57:23.000Z","dependencies_parsed_at":"2022-08-28T23:31:49.324Z","dependency_job_id":null,"html_url":"https://github.com/petoc/vago","commit_stats":null,"previous_names":["petoc/isogo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/petoc/vago","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petoc%2Fvago","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petoc%2Fvago/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petoc%2Fvago/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petoc%2Fvago/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petoc","download_url":"https://codeload.github.com/petoc/vago/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petoc%2Fvago/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28660770,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"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":["go","golang","iso","iso-3166-1","iso-3166-2","iso-3166-3","iso-4217","time-zone"],"created_at":"2026-01-22T09:35:27.079Z","updated_at":"2026-01-22T09:35:27.174Z","avatar_url":"https://github.com/petoc.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Validators\n\nCollection of simple validators for Go.\n\n## Available validators\n\n[ISO-3166-1](https://github.com/petoc/vago/tree/master/iso31661) (alpha2, alpha3, numeric)\u003cbr\u003e\n[ISO-3166-2](https://github.com/petoc/vago/tree/master/iso31662)\u003cbr\u003e\n[ISO-3166-3](https://github.com/petoc/vago/tree/master/iso31663)\u003cbr\u003e\n[ISO-4217](https://github.com/petoc/vago/tree/master/iso4217)\u003cbr\u003e\n[Time Zone (IANA)](https://github.com/petoc/vago/tree/master/tz)\u003cbr\u003e\n\n## Usage\n\n### ISO-3166-1\n\n```go\nimport \"github.com/petoc/vago/iso31661\"\n```\n\n```go\niso31661.IsAlpha2(\"AU\")     // true\niso31661.NameAlpha2(\"AU\")   // Australia\niso31661.IsAlpha3(\"AUS\")    // true\niso31661.NameAlpha3(\"AUS\")  // Australia\niso31661.IsNumeric(\"004\")   // true\niso31661.NameNumeric(\"AUS\") // Australia\niso31661.Is(\"AU\")           // true\niso31661.Is(\"AUS\")          // true\niso31661.Is(\"004\")          // true\niso31661.Name(\"AU\")         // Australia\niso31661.Name(\"AUS\")        // Australia\niso31661.Name(\"004\")        // Australia\n```\n\n### ISO-3166-2\n\n```go\nimport \"github.com/petoc/vago/iso31662\"\n```\n\n```go\niso31662.Is(\"AU-NSW\")   // true\niso31662.Name(\"AU-NSW\") // New South Wales, Australia\n```\n\n### ISO-3166-3\n\n```go\nimport \"github.com/petoc/vago/iso31663\"\n```\n\n```go\niso31663.Is(\"BQAQ\")   // true\niso31663.Name(\"BQAQ\") // British Antarctic Territory\n```\n\n### ISO-4217\n\n```go\nimport \"github.com/petoc/vago/iso4217\"\n```\n\n```go\niso4217.Is(\"EUR\")   // true\niso4217.Name(\"EUR\") // Euro\n```\n\n### Time zone (IANA)\n\n```go\nimport \"github.com/petoc/vago/tz\"\n```\n\n```go\ntz.Is(\"Europe/Berlin\") // true\n```\n\n## Sources\n\nISO-3166-1 (https://github.com/lukes/ISO-3166-Countries-with-Regional-Codes/blob/master/all/all.json)\u003cbr\u003e\nISO-3166-2 (https://github.com/olahol/iso-3166-2.json/blob/master/iso-3166-2.json)\u003cbr\u003e\nISO-3166-3 (https://github.com/haliaeetus/iso-3166/blob/master/data/iso_3166-3.json)\u003cbr\u003e\nISO-4217 (https://github.com/umpirsky/currency-list/blob/master/data/en/currency.json)\u003cbr\u003e\nTime Zone (IANA) (https://github.com/eggert/tz/blob/master/zone.tab)\u003cbr\u003e\n\n## License\n\nLicensed under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetoc%2Fvago","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetoc%2Fvago","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetoc%2Fvago/lists"}