{"id":26022948,"url":"https://github.com/agrison/go-commons-lang","last_synced_at":"2025-03-06T10:37:35.470Z","repository":{"id":57487229,"uuid":"52095281","full_name":"agrison/go-commons-lang","owner":"agrison","description":"go-commons-lang","archived":false,"fork":false,"pushed_at":"2024-01-06T07:52:36.000Z","size":40,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-06-18T18:45:20.458Z","etag":null,"topics":[],"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/agrison.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":"2016-02-19T15:05:17.000Z","updated_at":"2024-05-18T06:04:14.000Z","dependencies_parsed_at":"2024-01-06T08:44:21.831Z","dependency_job_id":null,"html_url":"https://github.com/agrison/go-commons-lang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fgo-commons-lang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fgo-commons-lang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fgo-commons-lang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/agrison%2Fgo-commons-lang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/agrison","download_url":"https://codeload.github.com/agrison/go-commons-lang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242194588,"owners_count":20087610,"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":[],"created_at":"2025-03-06T10:37:34.840Z","updated_at":"2025-03-06T10:37:35.459Z","avatar_url":"https://github.com/agrison.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-commons-lang\n\n[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]\n[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][godocs]\n[![Go Report Card](https://goreportcard.com/badge/github.com/agrison/go-commons-lang)][goreportcard]\n\n[license]: https://github.com/agrison/go-commons-lang/blob/master/LICENSE\n[godocs]: https://godoc.org/github.com/agrison/go-commons-lang\n[goreportcard]: https://goreportcard.com/report/github.com/agrison/go-commons-lang\n\nThis is a package aiming at regrouping common utilities where it makes sense in the Go language.\nIt originated as a port of the popular Java Apache Commons StringUtils, but more will be added gradually.\n\n| Package | Description |\n| ------------- | ------------- |\n| `stringUtils` | String Utilities reflecting what's available in [StringUtils](http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/StringUtils.html) |\n| `wordUtils` | String Utilities regarding words [WordUtils](http://commons.apache.org/proper/commons-lang/apidocs/org/apache/commons/lang3/text/WordUtils.html) |\n| `randUtils` | [RandomUtils](http://commons.apache.org/proper/commons-lang/apidocs/index.html?org/apache/commons/lang3/StringUtils.html)  |\n| `mathUtils` | `Fraction` implementation of Apache Commons  |\n\n## Usage: `stringUtils`\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\tstrUtil \"github.com/agrison/go-commons-lang/stringUtils\"\n)\n\nfunc main() {\n\tlib := strUtil.Join([]string{\"lang\", \"commons\", \"go\"}, \"-\")\n\tfmt.Print(strUtil.Capitalize(strUtil.Reverse(\"olleh\")))\n\tfmt.Print(strUtil.SwapCase(strUtil.Chomp(\" fROM \\n\")))\n\tfmt.Println(strUtil.ReverseDelimited(lib, \"-\") + strUtil.Right(\"Go!! \", 2))\n\t// Output: Hello From go-commons-lang!\n  // See the doc for all the implemented utilities\n}\n```\n\n## Installation\n\n```sh\ngo get github.com/agrison/go-commons-lang\n```\n\n## Join\n\nPRs are more than welcome :)\n\n## Author\n\n[Alexandre Grison](https://github.com/agrison) and obviously all the contributors of the original Apache Commons Lang.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrison%2Fgo-commons-lang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fagrison%2Fgo-commons-lang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fagrison%2Fgo-commons-lang/lists"}