Skip to content

surajkewat/wc-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

WC tool using Go

My version of the Unix command-line utility wc using GO.

Code Challenge

Solution to the First Coding Challege in John Crickett's Coding Challenges.

How to Run

Execute go run main.go test.txt to run in console.

The following are the possible arguments:

# print the byte counts
$ go run main.go -c test.text
Bytes = 342190

# print the line counts
$ go run main.go -l test.text
Lines = 7145

# print the word counts
$ go run main.go -w test.text
Words = 58164

# print the character counts
$ go run main.go -m test.txt
Chars = 339292


# print the line,words and byte counts
$ go run main.go test.text
lines = 7145
words = 58164
bytes = 342190

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages