An implementation of the wc cli tool written in go
Move inside the root directory of the project and run go test
from the terminal
Move inside the root directory of the project and run one of the following command:
go run go-wc [flag] [filename]
from the terminalmore file.txt | go run go-wc [flag]
from the terminal
-c
count bytes-l
count lines-w
count words-m
count unicode characters- if not specified will print the equivalent of
-l
-w
-c
by default
- the name of the file to process, it can be a relative path or an absolute one
- Do not open and close the file between each counting operation -> Done ✅