Version in Go of the Unix command line tool wc.
It was carried out in order to overcome the Coding Challenges challenge.
You must have Go installed and configured on your machine.
git clone [email protected]:SantiSite/ccwc.git
cd ccwc
go install
How to use:
ccwc --help
Print the word counts:
$ ccwc -w <path/to/your/file>
$ ccwc main.go
output:
newlines words bytes chars
135 382 2549 2549 main.go
$ cat main.go | ccwc
output:
newlines words bytes chars
135 382 2549 2549 main.go