{"id":37167024,"url":"https://github.com/navono/pangu","last_synced_at":"2026-01-14T19:46:49.142Z","repository":{"id":57650621,"uuid":"240627174","full_name":"navono/pangu","owner":"navono","description":"Paranoid text spacing in Go (Golang)","archived":false,"fork":true,"pushed_at":"2020-02-15T01:53:00.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T03:36:27.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://godoc.org/github.com/vinta/pangu","language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"vinta/pangu","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/navono.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-15T01:28:24.000Z","updated_at":"2020-02-15T01:28:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/navono/pangu","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/navono/pangu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fpangu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fpangu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fpangu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fpangu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/navono","download_url":"https://codeload.github.com/navono/pangu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/navono%2Fpangu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28432863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-14T19:46:48.428Z","updated_at":"2026-01-14T19:46:49.125Z","avatar_url":"https://github.com/navono.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"pangu.go\n========\n\n[![](https://img.shields.io/travis/vinta/pangu.svg?style=flat-square)](https://travis-ci.org/vinta/pangu)\n[![](https://img.shields.io/badge/made%20with-%e2%9d%a4-ff69b4.svg?style=flat-square)](https://vinta.ws/code/)\n\nParanoid text spacing for good readability, to automatically insert whitespace between CJK (Chinese, Japanese, Korean) and half-width characters (alphabetical letters, numerical digits and symbols).\n\n- [pangu.go](https://github.com/vinta/pangu) (Go)\n- [pangu.java](https://github.com/vinta/pangu.java) (Java)\n- [pangu.js](https://github.com/vinta/pangu.js) (JavaScript)\n- [pangu.py](https://github.com/vinta/pangu.py) (Python)\n- [pangu.space](https://github.com/vinta/pangu.space) (Web API)\n\n## Installation\n\nTo install the package, `pangu`, for using in your Go programs:\n\n```console\n$ go get -u github.com/vinta/pangu\n```\n\nTo install the command-line tool, `pangu-axe`:\n\n```console\n$ go get -u github.com/vinta/pangu/pangu-axe\n```\n\n## Usage\n\n### Package\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"github.com/vinta/pangu\"\n)\n\nfunc main() {\n    s := pangu.SpacingText(\"當你凝視著bug，bug也凝視著你\")\n    fmt.Println(s)\n    // Output:\n    // 當你凝視著 bug，bug 也凝視著你\n}\n```\n\n### Command-line Interface\n\n```console\n$ pangu-axe text \"與PM戰鬥的人，應當小心自己不要成為PM\"\n與 PM 戰鬥的人，應當小心自己不要成為 PM\n\n$ pangu-axe file 銀河便車指南.txt\n$ pangu-axe file 宇宙盡頭的餐廳.txt -o 宇宙盡頭的餐廳（好讀版）.txt\n$ pangu-axe file 生命、宇宙及萬事萬物.txt 再見，謝謝你的魚.txt 基本無害.txt\n```\n\n## Documentation\n\n- `pangu` on [GoDoc](https://godoc.org/github.com/vinta/pangu)\n- `pangu-axe` on [GoDoc](https://godoc.org/github.com/vinta/pangu/pangu-axe)\n\nHave a question? Ask it on the [GitHub issues](https://github.com/vinta/pangu/issues)!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavono%2Fpangu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnavono%2Fpangu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnavono%2Fpangu/lists"}