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.
- Host: GitHub
- URL: https://github.com/vromero/gofortune
- Owner: vromero
- License: apache-2.0
- Created: 2017-07-04T16:17:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-12-07T05:26:27.000Z (over 7 years ago)
- Last Synced: 2025-12-19T02:42:16.400Z (6 months ago)
- Topics: fortune-cookie, fortune-cookies, golang, unix, unix-command
- Language: Go
- Homepage: https://gofortune.github.io/
- Size: 54.7 KB
- Stars: 3
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
GoFortune
Print a random, hopefully interesting, adage.
---
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)/.