https://github.com/riesinger/golorem
CLI lorem ipsum generator written in Go
https://github.com/riesinger/golorem
go golang lorem-ipsum lorem-ipsum-generator random words
Last synced: 4 months ago
JSON representation
CLI lorem ipsum generator written in Go
- Host: GitHub
- URL: https://github.com/riesinger/golorem
- Owner: riesinger
- Created: 2017-04-04T18:54:08.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-07-17T20:01:33.000Z (almost 5 years ago)
- Last Synced: 2024-05-01T19:15:55.769Z (about 2 years ago)
- Topics: go, golang, lorem-ipsum, lorem-ipsum-generator, random, words
- Language: Go
- Size: 3.91 KB
- Stars: 9
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Lorem!
CLI lorem ipsum generator written in Go
## Installing
`go get -u github.com/riesinger/golorem` is your friend! :wink:
## Usage
```shell
$ golorem --words 100
> 100 random (pseudo-)latin words
$ golorem -w 100
> -w is an alias for --words
$ golorem --paragraphs 10
> 10 paragraphs with 10 words each (separated with two newlines)
$ golorem -p 10
> -p is an alias for --paragraphs
$ golorem --paragraphs 10 --words 100
> 10 paragraphs with 100 words each
$ golorem -p 10 --paragraph-separator="
"
> 10 paragraphs separated with "
" (for HTML use)
```
*Please note:* Escape sequences do not work inside of `--paragraph-separator`, if you know how to make the pflags (or even flags) package parse those, tell me!