{"id":17717942,"url":"https://github.com/mamal72/stringish","last_synced_at":"2025-08-08T10:41:51.652Z","repository":{"id":74988456,"uuid":"150117937","full_name":"mamal72/stringish","owner":"mamal72","description":"A set of chain-able string helpers to reduce the pain of manipulating strings","archived":false,"fork":false,"pushed_at":"2018-09-24T15:56:22.000Z","size":4,"stargazers_count":23,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-08-06T00:35:03.224Z","etag":null,"topics":["go","golang","string","string-manipulation","strings"],"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/mamal72.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":"2018-09-24T14:42:31.000Z","updated_at":"2019-08-24T07:58:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"257af819-6448-4918-bc3f-c8790918fa21","html_url":"https://github.com/mamal72/stringish","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fstringish","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fstringish/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fstringish/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamal72%2Fstringish/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamal72","download_url":"https://codeload.github.com/mamal72/stringish/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246620224,"owners_count":20806722,"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","golang","string","string-manipulation","strings"],"created_at":"2024-10-25T14:33:06.117Z","updated_at":"2025-04-01T16:30:32.883Z","avatar_url":"https://github.com/mamal72.png","language":"Go","readme":"[![Build Status](https://travis-ci.org/mamal72/stringish.svg?branch=master)](https://travis-ci.org/mamal72/stringish)\n[![Go Report Card](https://goreportcard.com/badge/github.com/mamal72/stringish)](https://goreportcard.com/report/github.com/mamal72/stringish)\n[![GoDoc](https://godoc.org/github.com/mamal72/stringish?status.svg)](https://godoc.org/github.com/mamal72/stringish)\n[![license](https://img.shields.io/github/license/mamal72/stringish.svg)](https://github.com/mamal72/stringish/blob/master/LICENSE)\n\n\n# stringish\n\nA set of chain-able string helpers to reduce the pain of manipulating strings.\n\n\n## Installation\n\n```bash\ngo get github.com/mamal72/stringish\n# or use dep, vgo, glide or anything else\n```\n\n\n## Usage\n\n\n### Implemented Methods\n\n\n- `ReplaceN`\n- `ReplaceAll`\n- `ToLower`\n- `ToUpper`\n- `TrimPrefix`\n- `TrimSuffix`\n- `TrimSpaces`\n- `TrimPrefixSpaces`\n- `TrimSuffixSpaces`\n- `HasPrefix`\n- `HasSuffix`\n- `Equals`\n- `IsEmpty`\n- `IsBlank`\n- `Contains`\n- `Len`\n- `Index`\n- `LastIndex`\n- `Map`\n- `Filter`\n- `GetString`\n\n\n### Example\n\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/mamal72/stringish\"\n)\n\nfunc main() {\n\tstr := stringish.New(\"  hello there \")\n\tstr.TrimSpaces().Map(func(char string) string {\n\t\treturn strings.ToUpper(char)\n\t})\n\tlog.Println(str.GetString()) // \"HELLO THERE\"\n\tlog.Println(str.Replace(\"HELLO\", \"bye\").Contains(\"bye\")) // true\n\tlog.Println(str.GetString()) // \"bye THERE\"\n}\n```\n\n\n## Ideas || Issues\n\nJust create an issue and describe it. I'll check it ASAP!\n\n\n## Contribution\n\nYou can fork the repository, improve or fix some part of it and then send the pull requests back (with some tests ofc) if you want to see them here. I really appreciate that. ❤️\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Fstringish","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamal72%2Fstringish","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamal72%2Fstringish/lists"}