Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dlion/gowc
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dlion/gowc
- Owner: dlion
- Created: 2023-12-21T20:08:50.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-26T15:29:22.000Z (11 months ago)
- Last Synced: 2024-10-13T11:11:01.249Z (2 months ago)
- Language: Go
- Size: 1.29 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Gowc
Unix command line tool WC written in Go## Author
Domenico Luciani
https://domenicoluciani.com## How to build and run this tool
`go build`
`./gowc `For example `./gowc -l resources/test.txt`
## Default behavior - No flags
By default the tool will count `bytes`, `lines` and `words` of the specified file
```bash
❯ ./gowc resources/test.txt
342190 58164 7145 resources/test.txt
```## Optional flags available
* `-c`: count bytes
* `-l` count lines
* `-w` count words
* `-m` count characters -multibyte characters supported-## Idea
This is the implementation of the [WC Coding Challenge](https://codingchallenges.fyi/challenges/challenge-wc) with Go, following those requirements step-by-step
Any idea or feedback to make it better are always welcomed!