An open API service indexing awesome lists of open source software.

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

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!