https://github.com/redsift/go-foodfans
Food names based reference generator
https://github.com/redsift/go-foodfans
Last synced: 12 months ago
JSON representation
Food names based reference generator
- Host: GitHub
- URL: https://github.com/redsift/go-foodfans
- Owner: redsift
- Created: 2016-04-08T14:36:28.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2021-03-17T23:54:35.000Z (about 5 years ago)
- Last Synced: 2025-05-21T00:13:44.414Z (about 1 year ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 18
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#Food Fans
Generates memorable references using food.
import "github.com/redsift/go-foodfans"
# Seed the rng if required in your main()
rand.Seed(time.Now().UTC().UnixNano())
s := foodfans.New()
## go generate
Relies on `stringer` to generate lookup table. If you change the constants, regenerate the table.
# Install stringer if required
go get golang.org/x/tools/cmd/stringer
# Regenerate the lookup
cd lookup
go generate