Converge is a CLI tool designed for merging multiple Go source files into a single file. It provides a streamlined approach for consolidating Go package structures, simplifying code sharing, and other scenarios where amalgamating Go files is beneficial.
- Efficiently merges multiple Go source files from a specified directory into a single consolidated file.
- Allows exclusion of specific files from the merging process.
- Supports an optional timeout setting for the merge operation.
To install Converge, ensure Go is installed on your machine.
which go
You can install Converge using the following command:
go install github.com/dannyhinshaw/converge
Reference the help
command for detailed usage instructions:
converge --help
To merge all Go files in the 'src' directory into 'merged.go':
converge --dir=./src --output=./merged.go
To merge all Go files in the 'src' directory and pipe to clipboard:
converge --dir=./src | pbcopy
Converge is licensed under the MIT License.