{"id":28158498,"url":"https://github.com/indeedeng/go-groups","last_synced_at":"2025-05-15T09:20:04.009Z","repository":{"id":47429689,"uuid":"193763482","full_name":"indeedeng/go-groups","owner":"indeedeng","description":"Command go-groups is a CLI tool to parse go import blocks, sort, and re-group the imports","archived":false,"fork":false,"pushed_at":"2023-06-23T19:52:28.000Z","size":45,"stargazers_count":8,"open_issues_count":2,"forks_count":6,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-05-07T23:40:07.029Z","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":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/indeedeng.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-06-25T18:36:06.000Z","updated_at":"2022-10-11T21:05:08.000Z","dependencies_parsed_at":"2024-06-19T01:53:29.107Z","dependency_job_id":"e8fab10a-739a-4303-9087-be1fb5bcabc5","html_url":"https://github.com/indeedeng/go-groups","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fgo-groups","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fgo-groups/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fgo-groups/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indeedeng%2Fgo-groups/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indeedeng","download_url":"https://codeload.github.com/indeedeng/go-groups/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254310502,"owners_count":22049471,"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-05-15T09:19:41.604Z","updated_at":"2025-05-15T09:20:03.952Z","avatar_url":"https://github.com/indeedeng.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"go-groups\n=========\n\n[![Go Report Card](https://goreportcard.com/badge/oss.indeed.com/go/go-groups)](https://goreportcard.com/report/oss.indeed.com/go/go-groups)\n[![Build Status](https://travis-ci.com/indeedeng/go-groups.svg?branch=master)](https://travis-ci.org/indeedeng/go-groups)\n[![GoDoc](https://godoc.org/oss.indeed.com/go/go-groups?status.svg)](https://godoc.org/oss.indeed.com/go/go-groups)\n[![NetflixOSS Lifecycle](https://img.shields.io/osslifecycle/indeedeng/go-groups.svg)](OSSMETADATA)\n[![GitHub](https://img.shields.io/github/license/indeedeng/go-groups.svg)](LICENSE)\n\n# Project Overview\n\nCommand `go-groups` is a CLI tool to deterministically rewrite go import blocks to sort and re-group \nthe imports.\n\n`go-groups` is similar to `goimports`, but in addition to sorting imports \nlexigraphically, it also separates import blocks at a per-project level.\nLike `goimports`, `go-groups` also runs gofmt and fixes any style/formatting\nissues.\n\n# Getting Started\n\nThe `go-groups` command can be installed by running:\n\n```\n$ go install oss.indeed.com/go/go-groups@latest\n```\n\n# Usage\n```\n$ go-groups -h\n  usage: go-groups [flags] [path ...]\n    -d    display diffs instead of rewriting files\n    -f    disables the automatic gofmt style fixes\n    -g    include generated code in analysis\n    -l    list files whose formatting differs\n    -v    display the version of go-groups\n    -w    write result to (source) file instead of stdout\n```\n\n# Formatting Behavior\n\n#### With this example source file input\n```\nimport (\n  \"strings\"\n  \"github.com/pkg/errors\"\n  \"fmt\"\n  \"github.com/gorilla/mux\"\n  \"github.com/gorilla/csrf\"\n)\n```\n\n#### Running `go-groups` will produce\n```\nimport (\n  \"fmt\"\n  \"strings\"\n  \n  \"github.com/gorilla/csrf\"\n  \"github.com/gorilla/mux\"\n  \n  \"github.com/pkg/errors\"\n)\n```\n\n#### Typical Workflow\n\nRun `go-groups -w ./..` to rewrite and sort import groupings for go source files in a project.\n\n# Asking Questions\n\nFor technical questions about `go-groups`, just file an issue in the GitHub tracker.\n\nFor questions about Open Source in Indeed Engineering, send us an email at\nopensource@indeed.com\n\n# Contributing\n\nWe welcome contributions! Feel free to help make `go-groups` better.\n\n### Process\n\n- Open an issue and describe the desired feature / bug fix before making\nchanges. It's useful to get a second pair of eyes before investing development\neffort.\n- Make the change. If adding a new feature, remember to provide tests that\ndemonstrate the new feature works, including any error paths. If contributing\na bug fix, add tests that demonstrate the erroneous behavior is fixed.\n- Open a pull request. Automated CI tests will run. If the tests fail, please\nmake changes to fix the behavior, and repeat until the tests pass.\n- Once everything looks good, one of the indeedeng members will review the\nPR and provide feedback.\n\n# Maintainers\n\nThe `oss.indeed.com/go/go-groups` module is maintained by Indeed Engineering.\n\nWhile we are always busy helping people get jobs, we will try to respond to\nGitHub issues, pull requests, and questions within a couple of business days.\n\n# Code of Conduct\n\n`oss.indeed.com/go/go-groups` is governed by the [Contributer Covenant v1.4.1](CODE_OF_CONDUCT.md)\n\nFor more information please contact opensource@indeed.com.\n\n# License\n\nThe `oss.indeed.com/go/go-groups` module is open source under the [BSD-3-Clause](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findeedeng%2Fgo-groups","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findeedeng%2Fgo-groups","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findeedeng%2Fgo-groups/lists"}