{"id":16105826,"url":"https://github.com/devlights/go-kenall-example","last_synced_at":"2025-09-20T23:12:10.310Z","repository":{"id":181662165,"uuid":"667110762","full_name":"devlights/go-kenall-example","owner":"devlights","description":"郵便番号データ、通称 KEN_ALL でファイル操作を行っているサンプルです。(新しく追加された utf_all.csv を使っています）","archived":false,"fork":false,"pushed_at":"2023-07-17T09:46:39.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-21T00:44:44.023Z","etag":null,"topics":[],"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/devlights.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":"2023-07-16T17:10:54.000Z","updated_at":"2023-07-16T17:58:15.000Z","dependencies_parsed_at":"2024-01-29T18:02:25.106Z","dependency_job_id":null,"html_url":"https://github.com/devlights/go-kenall-example","commit_stats":null,"previous_names":["devlights/go-kenall-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devlights/go-kenall-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgo-kenall-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgo-kenall-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgo-kenall-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgo-kenall-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlights","download_url":"https://codeload.github.com/devlights/go-kenall-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgo-kenall-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276169664,"owners_count":25596956,"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-09-20T02:00:10.207Z","response_time":63,"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":[],"created_at":"2024-10-09T19:10:44.091Z","updated_at":"2025-09-20T23:12:10.276Z","avatar_url":"https://github.com/devlights.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-kenall-example\n\n郵便番号データ、通称 KEN_ALL でファイル操作を行っているサンプルです。\n\n(新しく追加された utf_all.csv を使っています）\n\n![Go Version](https://img.shields.io/badge/go-1.20-blue.svg)\n\n## Environments\n\n```sh\n$ lsb_release -a\nNo LSB modules are available.\nDistributor ID: Ubuntu\nDescription:    Ubuntu 22.04.2 LTS\nRelease:        22.04\nCodename:       jammy\n\n\n$ go version\ngo version go1.20.5 linux/amd64\n```\n\n## Requirements\n\n### [Task](https://taskfile.dev/)\n\n```sh\n$ go install github.com/go-task/task/v3/cmd/task@latest\n```\n\n## How to\n\n### Run (on Gitpod)\n\n```sh\n$ task download\ntask: [download] wget https://www.post.japanpost.jp/zipcode/utf_all.csv\n--2023-07-16 17:46:56--  https://www.post.japanpost.jp/zipcode/utf_all.csv\nResolving www.post.japanpost.jp (www.post.japanpost.jp)... 43.253.212.17\nConnecting to www.post.japanpost.jp (www.post.japanpost.jp)|43.253.212.17|:443... connected.\nHTTP request sent, awaiting response... 200 OK\nLength: 18305986 (17M) [text/csv]\nSaving to: ‘utf_all.csv’\n\nutf_all.csv                      100%[========================================================\u003e]  17.46M  1.89MB/s    in 10s     \n\n2023-07-16 17:47:07 (1.70 MB/s) - ‘utf_all.csv’ saved [18305986/18305986]\n\ntask: [download] file -i utf_all.csv\nutf_all.csv: text/csv; charset=utf-8\ntask: [download] wc -l utf_all.csv\n124270 utf_all.csv\ntask: [download] ls -lh utf_all.csv | awk '{print $5}'\n18M\n```\n\n```sh\n$ task run\ntask: [run] go build\ntask: [run] ./kenall \"^東京.*銀座\"\n東京都中央区銀座\n======================================\ntask: [run] ./kenall \"^[^(東京)].*銀座\"\n北海道夕張郡長沼町銀座\n栃木県鹿沼市銀座\n埼玉県熊谷市銀座\n埼玉県本庄市銀座\n富山県富山市新庄銀座\n長野県岡谷市銀座\n長野県岡谷市東銀座\n長野県飯田市銀座\n静岡県静岡市清水区銀座\n静岡県熱海市銀座町\n静岡県伊東市銀座元町\n愛知県半田市銀座本町\n愛知県刈谷市銀座\n滋賀県彦根市銀座町\n山口県周南市銀座\n山口県周南市みなみ銀座\n徳島県徳島市銀座\n福岡県北九州市戸畑区銀座\n```\n\n## 参考情報\n\n- https://www.post.japanpost.jp/zipcode/download.html\n- https://devlights.hatenablog.com/entry/2023/07/14/073000\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fgo-kenall-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlights%2Fgo-kenall-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fgo-kenall-example/lists"}