https://github.com/gregoryv/gomerge
Merge go files removing duplicate imports
https://github.com/gregoryv/gomerge
Last synced: 8 months ago
JSON representation
Merge go files removing duplicate imports
- Host: GitHub
- URL: https://github.com/gregoryv/gomerge
- Owner: gregoryv
- License: mit
- Created: 2022-02-14T21:05:59.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T06:14:46.000Z (over 2 years ago)
- Last Synced: 2025-03-30T05:13:09.989Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: changelog.md
- License: LICENSE
Awesome Lists containing this project
README
[gomerge](https://pkg.go.dev/github.com/gregoryv/gomerge) - constructs for merging Go files
When dealing with over structured(to many directory and files)
repositories, one route to tidying them is to merge files with related
concepts. This often simplifies additional refactoring.
The provided cmd/gomerge removes the manual steps of concatenating go
files and removing duplicate package imports.
## Quick start
$ go install github.com/gregoryv/gomerge/cmd/gomerge@latest
$ gomerge -h
Usage: gomerge [OPTIONS] DST SRC
Options
-i include src filename in merged as comment
-r removes source after merge(only with -w) (default true)
-w writes result to destination file (default true)