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

https://github.com/vromero/gofortune

Print a random, hopefully interesting, adage.
https://github.com/vromero/gofortune

fortune-cookie fortune-cookies golang unix unix-command

Last synced: 3 months ago
JSON representation

Print a random, hopefully interesting, adage.

Awesome Lists containing this project

README

          


GoFortune Logo

GoFortune


Print a random, hopefully interesting, adage.



Release
Software License
Travis
Codecov branch
Go Report Card
SayThanks.io
Powered By: GoReleaser

---

GoFortune is an implementation in the fortune unix tool set: `fortune` and `strfile`. Aiming storage format and
command-line compatibility with the `fortune-mod` version in 1.0.

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines for further information.

## Usage

`gofortune fortune` will print a random, hopefully interesting, adage.

`gofortune strfile` will create a random access index file for storing strings.

## I18n

When any of the LANG variables are present in unix systems or language configuration is present in Windows systems;
if called without argument it will choose (if they exist) fortunes in the default fortunes directory appending
the language (i.e: `/usr/share/games/fortunes/es` and `/usr/share/games/fortunes/off/es` in unix with LC_ALL=es_ES)/.