A command-line tool written in Go that replicates the functionality of the Unix wc (word count) utility. It provides an efficient and fast way to count lines, words, and characters in text files, leveraging the power of Go.
-
Clone the Repository:
git clone https://github.com/sanjeev29/gowc.git cd gowc -
Build the Executable: Use the Go build tool to create the executable.
go build -o gowc main.go
-
Run the Tool: Run the generated executable file with a text file as input.
./gowc test.txt
This will output the number of lines, words, and characters in
test.txt.