https://github.com/msa-ali/word-counter
Simple Word Counter CLI Application with Go
https://github.com/msa-ali/word-counter
cli cli-application go golang
Last synced: 2 months ago
JSON representation
Simple Word Counter CLI Application with Go
- Host: GitHub
- URL: https://github.com/msa-ali/word-counter
- Owner: msa-ali
- Created: 2023-03-03T01:29:51.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T01:30:57.000Z (about 3 years ago)
- Last Synced: 2024-06-21T16:52:55.877Z (almost 2 years ago)
- Topics: cli, cli-application, go, golang
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Simple Word Counter CLI Application with Go
This tool counts the number of words or lines provided as input using the standard input (STDIN) connection.
- By default, this tool will count the number of words
- If the tool receives `-l` flag, then it will count the number of lines instead.
## How to run
- `go build`
- `echo "Hello Word" | ./word-counter` -> 2
- `cat main.go | ./word-counter -l` -> 34