Skip to content

AyushSaini00/wc-tool-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wc-tool in go

trying to implement wc-tool in go, part of this challenge: https://codingchallenges.fyi/challenges/challenge-wc

build:

go build

run:

  1. bytes count
./wc-tool-go wc -c test.txt
342190 test.txt
  1. lines count
./wc-tool-go wc -l test.txt
7145 test.txt
  1. words count
./wc-tool-go wc -w test.txt
58164 test.txt
  1. char count
./wc-tool-go wc -m test.txt
339292 test.txt
  1. no options
./wc-tool-go wc test.txt
7145  58164  342190 test.txt
  1. reading from stdin if no file is specified
cat test.txt | ./wc-tool-go wc
7145  58164  342190

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages