Documentation
¶
Index ¶
- Variables
- func Check(e error)
- func ChooseByCategory(categoryKey string, categories pokedex.Trie) (*pokedex.Entry, []string)
- func ChooseByName(name string, categories pokedex.Trie) *pokedex.PokemonMatch
- func ChooseByRandomIndex(totalInBytes []byte) (int, int)
- func ListCategories(categories pokedex.Trie) []string
- func Print(args Args, choice int, names []string, categories []string, cows embed.FS)
- func RandomInt(n int) int
- type Args
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ChooseByCategory ¶ added in v0.11.0
func ChooseByName ¶ added in v0.11.0
func ChooseByName(name string, categories pokedex.Trie) *pokedex.PokemonMatch
func ChooseByRandomIndex ¶ added in v0.11.0
func ListCategories ¶
func Print ¶ added in v0.11.0
The main print function! This uses a chosen pokemon's index, names and categories, and an embedded filesystem of cowfile data 1. The text received from STDIN is printed inside a speech bubble 2. The cowfile data is retrieved using the matching index, decompressed (un-gzipped), 3. The pokemon is printed along with the name & category information
Types ¶
Click to show internal directories.
Click to hide internal directories.