Discover Packages
github.com/knipferrc/gokedex
internal
pokemon
package
Version:
v0.0.0-...-8aa7e6e
Opens a new window with list of versions in this module.
Published: Oct 5, 2021
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ImageToString converts an image to a string.
SetContent sets the content of the pokemon.
ToggleImage toggles between the front and back sprites.
type Pokemon struct {
Count int `json:"count"`
Next string `json:"next"`
Previous string `json:"previous"`
Results []PokemonDetails `json:"results"`
}
type PokemonDetails struct {
ID string `json:"id"`
Name string `json:"name"`
URL string `json:"url"`
Order int `json:"order"`
Sprites Sprites `json:"sprites"`
Stats []Stats `json:"stats"`
}
type Sprites struct {
FrontDefault string `json:"front_default"`
BackDefault string `json:"back_default"`
}
type Stat struct {
Name string `json:"name"`
}
type Stats struct {
BaseStat int `json:"base_stat"`
Effort int `json:"effort"`
Stat Stat `json:"stat"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.