Package importer reads from a CSV file and returns a sorted data of email domains along with the number of customers
with e-mail addresses for each domain.
Package exporter export data in requested format. Currently only csv format is supported
To build the application it is required to have:
- Go 1.25 installed
To build the application call the command:
make build
To check the all available execution flags call:
./bin/domain-counter --help
Usage of the application:
csvSeparatorstring Fields separator. Example: ";", ",", "|". (default ",")outFilestring Name of the output file. If empty stdout is used.pathstring Name of the input file. (default "customers.csv")sortDescendingSort descending. Default is falseverboseVerbose output. Default is false
To start unit tests please call the command:
make go_test_unit
To start benchark tests please call the command:
make go_test_bench