{"id":17355072,"url":"https://github.com/hezhizheng/pgo","last_synced_at":"2025-03-27T14:16:55.765Z","repository":{"id":57581046,"uuid":"362681553","full_name":"hezhizheng/pgo","owner":"hezhizheng","description":"使用golang实现一些常用的函数(包括但不限于php)，持续更新中...","archived":false,"fork":false,"pushed_at":"2021-09-27T08:52:07.000Z","size":18,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-01T18:26:16.840Z","etag":null,"topics":["go-functions","php-functions","php2go"],"latest_commit_sha":null,"homepage":"https://pkg.go.dev/github.com/hezhizheng/pgo","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/hezhizheng.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-29T03:45:42.000Z","updated_at":"2023-12-12T10:10:21.000Z","dependencies_parsed_at":"2022-09-26T19:31:01.243Z","dependency_job_id":null,"html_url":"https://github.com/hezhizheng/pgo","commit_stats":null,"previous_names":["hezhizheng/php2golang"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhizheng%2Fpgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhizheng%2Fpgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhizheng%2Fpgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hezhizheng%2Fpgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hezhizheng","download_url":"https://codeload.github.com/hezhizheng/pgo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245858880,"owners_count":20684062,"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-functions","php-functions","php2go"],"created_at":"2024-10-15T17:42:10.942Z","updated_at":"2025-03-27T14:16:55.712Z","avatar_url":"https://github.com/hezhizheng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pgo 使用golang实现一些常用的函数(包括但不限于php一些常用的内置函数)\n\n收集一些常用的操作函数(包括但不限于php一些常用的内置函数)，帮助更快的完成开发工作，并减少重复代码，\n主要来源于 [https://www.php2golang.com](https://www.php2golang.com/) (每个函数都增加了简单的单元测试)\n\n## 安装\n`go get -u github.com/hezhizheng/pgo`\n\n## 使用\n```go\npgo.InArray(\"hello\",[]string{\"hello\",\"world\"}) // true\npgo.ArrayColumn()\npgo.ArrayPush()\npgo.ArrayPop()\npgo.ArrayUnshift()\npgo.ArrayShift()\npgo.ArrayUnique()\npgo.ArraySearch()\n\npgo.Md5(\"123465\") // e10adc3949ba59abbe56e057f20f883e\npgo.Uniqid(\"\") // 608a594ee0624\npgo.MbStrlen(\"中文 1\") // 4\npgo.Explode(\",\",\"hello,world\")\npgo.Strpos(\"+1s\",\"s\") // 2\n// 将字符串以指定长度进行截断\npgo.StrLimit(\"测试2q文字超出，符号补充 1a\",10,\"...\") // 测试2q文字超出，符...\n\npgo.Blank(0) // false\npgo.IsNumeric(\"000\") // true\n\npgo.FileExists(\"path\") // bool\n// 用法可参考test , 更多函数完善中...\n```\n\n## License\n[MIT](./LICENSE.txt)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhizheng%2Fpgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhezhizheng%2Fpgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhezhizheng%2Fpgo/lists"}