Go-Sort is a CLI application that provides a suite of commands for handling binary files and sorting operations. The application is built in Go and features three main commands:
- Generate: Creates a sample binary file in a specific format (the first number as
int64
indicating the number of subsequentint32
numbers). - Sort: Sorts a given binary file using the sample sort algorithm with concurrent sorting techniques and a k-ways merge algorithm implemented using a min-heap.
- Verify: Sequentially verifies the sorted file for correctness.
- Go version 1.21.4
- Dependencies:
github.com/fatih/color v1.16.0
github.com/spf13/cobra v1.8.0
To install Go-Sort, you need to have Go installed on your system (Follow the instructions: https://go.dev/dl/).
If you have Go set up, follow these steps:
- Clone the Go-Sort repository:
git clone https://github.com/CezikLikeWhat/PRIR_Sorting.git
- Change directory:
cd PRIR_Sorting
- Build a project for your OS:
or build for all operating systems:
Make build-[mac, linux, windows]
Make build
- Run application:
./bin/<OS>-<arch>/go-sort help
MIT