{"id":44357796,"url":"https://github.com/dnlo/cleaner","last_synced_at":"2026-02-11T16:44:08.847Z","repository":{"id":57512129,"uuid":"153891195","full_name":"dnlo/cleaner","owner":"dnlo","description":"Go package for composing functions to clean strings","archived":false,"fork":false,"pushed_at":"2018-11-18T13:05:24.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T08:04:13.362Z","etag":null,"topics":["cleaner","go","strings-manipulation"],"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/dnlo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-20T09:45:27.000Z","updated_at":"2024-06-20T08:04:13.362Z","dependencies_parsed_at":"2022-09-26T17:51:33.787Z","dependency_job_id":null,"html_url":"https://github.com/dnlo/cleaner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dnlo/cleaner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlo%2Fcleaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlo%2Fcleaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlo%2Fcleaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlo%2Fcleaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dnlo","download_url":"https://codeload.github.com/dnlo/cleaner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dnlo%2Fcleaner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29338519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:14:43.024Z","status":"ssl_error","status_checked_at":"2026-02-11T16:14:15.258Z","response_time":97,"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":["cleaner","go","strings-manipulation"],"created_at":"2026-02-11T16:44:08.015Z","updated_at":"2026-02-11T16:44:08.842Z","avatar_url":"https://github.com/dnlo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Package for cleaning strings\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/dnlo/cleaner)](https://goreportcard.com/report/github.com/dnlo/cleaner)\n\nDocs: https://godoc.org/github.com/dnlo/cleaner\n\nExample:\n\n```\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/dnlo/cleaner\"\n)\n\nvar sellers = []string{\n\t\"Seller: 3*3whiteangel3*3(1,175) 100%\",\n\t\"Seller: 80vann(545) 100%\",\n\t\"Seller: accessman4(1,010) 97.3%\",\n\t\"Seller: a_clothingdipity(1,403) 100%  View seller's store: a_clothingdipity\",\n\t\"Seller: andrewandania(11,405) 100%  View seller's store: andrewandania\",\n}\n\ntype seller struct {\n\tName     string\n\tSales    string\n\tFeedback string\n}\n\nfunc extract(s string) seller {\n\tgetName := cleaner.Clean(\n\t\tcleaner.AfterLast(\"Seller: \"),\n\t\tcleaner.BeforeFirst(`(`))\n\tgetSales := cleaner.Clean(\n\t\tcleaner.AfterLast(\"(\"),\n\t\tcleaner.BeforeFirst(\")\"),\n\t\tcleaner.Delete(\",\"))\n\tgetFeedback := cleaner.Clean(\n\t\tcleaner.AfterLast(\") \"),\n\t\tcleaner.Delete(\"%\"),\n\t\tcleaner.Extract(`[0-9\\.]*`))\n\n\treturn seller{\n\t\tName:     getName(s),\n\t\tSales:    getSales(s),\n\t\tFeedback: getFeedback(s),\n\t}\n}\n\nfunc main() {\n\tfor _, v := range sellers {\n\t\tfmt.Println(extract(v))\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnlo%2Fcleaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdnlo%2Fcleaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdnlo%2Fcleaner/lists"}