Skip to content

mmgopher/email-domain-counter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email domain counter

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

Requirements

To build the application it is required to have:

  • Go 1.25 installed

Executable

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:

  • csvSeparator string Fields separator. Example: ";", ",", "|". (default ",")
  • outFile string Name of the output file. If empty stdout is used.
  • path string Name of the input file. (default "customers.csv")
  • sortDescending Sort descending. Default is false
  • verbose Verbose output. Default is false

Tests

Unit tests

To start unit tests please call the command:

make go_test_unit

Benchark tests

To start benchark tests please call the command:

make go_test_bench

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors