{"id":20614913,"url":"https://github.com/lemmi/group","last_synced_at":"2025-07-24T10:05:14.903Z","repository":{"id":57585877,"uuid":"103583923","full_name":"lemmi/group","owner":"lemmi","description":"Group slices with a less-function ","archived":false,"fork":false,"pushed_at":"2021-01-21T06:38:26.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T04:15:05.052Z","etag":null,"topics":["go","golang","grouping"],"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/lemmi.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":"2017-09-14T21:34:43.000Z","updated_at":"2023-04-25T00:39:39.000Z","dependencies_parsed_at":"2022-09-12T08:20:48.616Z","dependency_job_id":null,"html_url":"https://github.com/lemmi/group","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/lemmi%2Fgroup","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmi%2Fgroup/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmi%2Fgroup/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemmi%2Fgroup/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemmi","download_url":"https://codeload.github.com/lemmi/group/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242269117,"owners_count":20100071,"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","grouping"],"created_at":"2024-11-16T11:13:52.242Z","updated_at":"2025-03-06T18:44:13.911Z","avatar_url":"https://github.com/lemmi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# group\n\n[![GoDoc](https://godoc.org/github.com/lemmi/group?status.svg)](https://godoc.org/github.com/lemmi/group)\n\nGroup slices with a less-function or collections that implement a subset of the\n`sort.Interface`.\n\n## Example\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"sort\"\n\n    \"github.com/lemmi/group\"\n)\n\nfunc main() {\n    s := sort.IntSlice([]int{2, 2, 1, 2, 1, 1})\n    s.Sort()\n\n    var groups [][]int\n    var g group.Grouper\n    for g.Scan(s) {\n        group := s[g.L:g.R]\n        groups = append(groups, group)\n        // ...\n    }\n\n    fmt.Println(groups)\n    // [[1 1 1] [2 2 2]]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemmi%2Fgroup","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemmi%2Fgroup","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemmi%2Fgroup/lists"}