{"id":16855352,"url":"https://github.com/jehiah/gomodimports","last_synced_at":"2025-03-18T11:12:30.662Z","repository":{"id":57517180,"uuid":"246454557","full_name":"jehiah/gomodimports","owner":"jehiah","description":"Like goimports but for keeping a tidy go.mod file","archived":false,"fork":false,"pushed_at":"2024-03-20T14:31:26.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-24T17:31:58.279Z","etag":null,"topics":["gomod","stylelint"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jehiah.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-11T02:20:26.000Z","updated_at":"2024-03-20T14:06:56.000Z","dependencies_parsed_at":"2024-06-20T17:24:42.335Z","dependency_job_id":"2f3d8d75-0836-4469-b3a9-f6083c9cfdba","html_url":"https://github.com/jehiah/gomodimports","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/jehiah%2Fgomodimports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fgomodimports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fgomodimports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jehiah%2Fgomodimports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jehiah","download_url":"https://codeload.github.com/jehiah/gomodimports/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244207747,"owners_count":20416109,"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":["gomod","stylelint"],"created_at":"2024-10-13T13:59:23.012Z","updated_at":"2025-03-18T11:12:30.640Z","avatar_url":"https://github.com/jehiah.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## gomodimports\n\nLike `goimports` but for keeping a tidy go.mod file\n\n\n```\n$ gomodimports -w -f go.mod\n```\n\nTakes an ugly go mod file\n\n```\nmodule myrepo.com/package\n\ngo 1.13\n\nrequire vcs.com/pkg/testing v1.5.1\nreplace (\n    // comment about pkg/testing\n    vcs.com/pkg/testing =\u003e ../testing\n) \nrequire (\n\tvcs.com/other-packages v0.0.0\n)\n```\n\nand turns it inoto a go.mod file with a single `require` and `replace` block preserving comments.\n\n```\nmodule myrepo.com/package\n\ngo 1.13\n\nrequire (\n\tvcs.com/other-packages v0.0.0\n\tvcs.com/pkg/testing v1.5.1\n)\n\n// comment about pkg/testing\nreplace vcs.com/pkg/testing =\u003e ../testing\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjehiah%2Fgomodimports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjehiah%2Fgomodimports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjehiah%2Fgomodimports/lists"}