{"id":22173889,"url":"https://github.com/9d4/go-module-refactorizer","last_synced_at":"2026-04-28T20:36:27.022Z","repository":{"id":109630019,"uuid":"465641732","full_name":"9d4/go-module-refactorizer","owner":"9d4","description":"Refactor module imports in go project.","archived":false,"fork":false,"pushed_at":"2022-03-03T09:14:51.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T22:46:14.886Z","etag":null,"topics":["command-line-tool","go","go-module","golang","gomodule","pyhton3","python","python-script","script"],"latest_commit_sha":null,"homepage":"","language":"Python","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/9d4.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":"2022-03-03T08:59:35.000Z","updated_at":"2022-03-03T09:16:17.000Z","dependencies_parsed_at":"2023-05-09T16:52:31.483Z","dependency_job_id":null,"html_url":"https://github.com/9d4/go-module-refactorizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d4%2Fgo-module-refactorizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d4%2Fgo-module-refactorizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d4%2Fgo-module-refactorizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/9d4%2Fgo-module-refactorizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/9d4","download_url":"https://codeload.github.com/9d4/go-module-refactorizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245325223,"owners_count":20596818,"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":["command-line-tool","go","go-module","golang","gomodule","pyhton3","python","python-script","script"],"created_at":"2024-12-02T07:36:04.838Z","updated_at":"2026-04-28T20:36:21.999Z","avatar_url":"https://github.com/9d4.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-module-refactorizer\n\nThis tool is used to refactor module imports inside `.go` files in directory. See below.\n\nBefore:\n```go\nimport (\n\ttgbotapi \"github.com/go-telegram-bot-api/telegram-bot-api/v5\"\n\t\"github.com/traperwaze/ampastelobot/action\"\n\t\"github.com/traperwaze/ampastelobot/session\"\n)\n```\n\nAfter:\n```go\nimport (\n\ttgbotapi \"github.com/go-telegram-bot-api/telegram-bot-api/v5\"\n\t\"github.com/9d4/ampastelobot/action\"\n\t\"github.com/9d4/ampastelobot/session\"\n)\n```\n\nSo, in demo above, I changed the `github.com/traperwaze` to `github.com/9d4`.\n\n# Usage\nI know this is the part you want to find the most. It's very simple to use this tool.\nThis tool is written in python. I've tested with python3, I don't know if it will work \nwith python2 or not, you may give it a try.\n\n```shell\n$ python3 main.py dir old_name new_name\n```\n\nAnything wrong? Don't hesitate to make issue or pull request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9d4%2Fgo-module-refactorizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F9d4%2Fgo-module-refactorizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F9d4%2Fgo-module-refactorizer/lists"}