{"id":22180625,"url":"https://github.com/jftuga/ellipsis","last_synced_at":"2025-03-24T18:46:07.869Z","repository":{"id":57569781,"uuid":"325412200","full_name":"jftuga/ellipsis","owner":"jftuga","description":"Go module to insert an ellipsis into the middle of a long string to shorten it","archived":false,"fork":false,"pushed_at":"2022-01-17T13:45:18.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-29T23:29:53.523Z","etag":null,"topics":["ellipsis","go","golang","library"],"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/jftuga.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}},"created_at":"2020-12-29T23:58:03.000Z","updated_at":"2024-10-03T03:10:25.000Z","dependencies_parsed_at":"2022-09-26T19:00:47.318Z","dependency_job_id":null,"html_url":"https://github.com/jftuga/ellipsis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fellipsis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fellipsis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fellipsis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fellipsis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jftuga","download_url":"https://codeload.github.com/jftuga/ellipsis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245332037,"owners_count":20598091,"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":["ellipsis","go","golang","library"],"created_at":"2024-12-02T09:18:57.089Z","updated_at":"2025-03-24T18:46:07.848Z","avatar_url":"https://github.com/jftuga.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ellipsis\nGo module to insert an ellipsis into the middle of a long string in order to shorten it.\n\n## Install\n```\ngo get github.com/jftuga/ellipsis\n```\n\n## License\n[MIT License](https://github.com/jftuga/ellipsis/blob/main/LICENSE)\n\n## Example\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"github.com/jftuga/ellipsis\"\n)\n\nfunc main() {\n\ts := \"abcdefghijklmnopqurstvwxyz\"\n\tfor i := 0; i \u003c= 26; i++ {\n\t\ts := ellipsis.Shorten(s, i)\n\t\tfmt.Printf(\"%2d %s\\n\", i, s)\n\t}\n}\n```\n\n## Output\n\n```\n 0 \n 1 z\n 2 yz\n 3 xyz\n 4 ...z\n 5 a...z\n 6 a...yz\n 7 ab...yz\n 8 ab...xyz\n 9 abc...xyz\n10 abc...wxyz\n11 abcd...wxyz\n12 abcd...vwxyz\n13 abcde...vwxyz\n14 abcde...tvwxyz\n15 abcdef...tvwxyz\n16 abcdef...stvwxyz\n17 abcdefg...stvwxyz\n18 abcdefg...rstvwxyz\n19 abcdefgh...rstvwxyz\n20 abcdefgh...urstvwxyz\n21 abcdefghi...urstvwxyz\n22 abcdefghi...qurstvwxyz\n23 abcdefghij...qurstvwxyz\n24 abcdefghij...pqurstvwxyz\n25 abcdefghijk...pqurstvwxyz\n26 abcdefghijklmnopqurstvwxyz\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fellipsis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjftuga%2Fellipsis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fellipsis/lists"}