Documentation
¶
Index ¶
- Variables
- func Ability(id string) (result structs.Ability, err error)
- func Berry(id string) (result structs.Berry, err error)
- func BerryFirmness(id string) (result structs.BerryFirmness, err error)
- func BerryFlavor(id string) (result structs.BerryFlavor, err error)
- func Characteristic(id string) (result structs.Characteristic, err error)
- func ClearCache()
- func ContestEffect(id string) (result structs.ContestEffect, err error)
- func ContestType(id string) (result structs.ContestType, err error)
- func EggGroup(id string) (result structs.EggGroup, err error)
- func EncounterCondition(id string) (result structs.EncounterCondition, err error)
- func EncounterConditionValue(id string) (result structs.EncounterConditionValue, err error)
- func EncounterMethod(id string) (result structs.EncounterMethod, err error)
- func EvolutionChain(id string) (result structs.EvolutionChain, err error)
- func EvolutionTrigger(id string) (result structs.EvolutionTrigger, err error)
- func Gender(id string) (result structs.Gender, err error)
- func Generation(id string) (result structs.Generation, err error)
- func GrowthRate(id string) (result structs.GrowthRate, err error)
- func Item(id string) (result structs.Item, err error)
- func ItemAttribute(id string) (result structs.ItemAttribute, err error)
- func ItemCategory(id string) (result structs.ItemCategory, err error)
- func ItemFlingEffect(id string) (result structs.ItemFlingEffect, err error)
- func ItemPocket(id string) (result structs.ItemPocket, err error)
- func Language(id string) (result structs.Language, err error)
- func Location(id string) (result structs.Location, err error)
- func LocationArea(id string) (result structs.LocationArea, err error)
- func Machine(id string) (result structs.Machine, err error)
- func Move(id string) (result structs.Move, err error)
- func MoveAilment(id string) (result structs.MoveAilment, err error)
- func MoveBattleStyle(id string) (result structs.MoveBattleStyle, err error)
- func MoveCategory(id string) (result structs.MoveCategory, err error)
- func MoveDamageClass(id string) (result structs.MoveDamageClass, err error)
- func MoveLearnMethod(id string) (result structs.MoveLearnMethod, err error)
- func MoveTarget(id string) (result structs.MoveTarget, err error)
- func Nature(id string) (result structs.Nature, err error)
- func PalParkArea(id string) (result structs.PalParkArea, err error)
- func PokeathlonStat(id string) (result structs.PokeathlonStat, err error)
- func Pokedex(id string) (result structs.Pokedex, err error)
- func Pokemon(id string) (result structs.Pokemon, err error)
- func PokemonColor(id string) (result structs.PokemonColor, err error)
- func PokemonForm(id string) (result structs.PokemonForm, err error)
- func PokemonHabitat(id string) (result structs.PokemonHabitat, err error)
- func PokemonShape(id string) (result structs.PokemonShape, err error)
- func PokemonSpecies(id string) (result structs.PokemonSpecies, err error)
- func Region(id string) (result structs.Region, err error)
- func Resource(endpoint string, params ...int) (result structs.Resource, err error)
- func Search(endpoint string, search string) (result structs.Resource, err error)
- func Stat(id string) (result structs.Stat, err error)
- func SuperContestEffect(id string) (result structs.SuperContestEffect, err error)
- func Type(id string) (result structs.Type, err error)
- func Version(id string) (result structs.Version, err error)
- func VersionGroup(id string) (result structs.VersionGroup, err error)
- type Settings
Constants ¶
This section is empty.
Variables ¶
var CacheSettings = Settings{ CustomExpire: 0, UseCache: true, }
Functions ¶
func BerryFirmness ¶
func BerryFirmness(id string) (result structs.BerryFirmness, err error)
BerryFirmness returns a single berry firmness (by name or ID).
func BerryFlavor ¶
func BerryFlavor(id string) (result structs.BerryFlavor, err error)
BerryFlavor returns a single berry flavor (by name or ID).
func Characteristic ¶
func Characteristic(id string) (result structs.Characteristic, err error)
Characteristic returns a single characteristic (by ID).
func ContestEffect ¶
func ContestEffect(id string) (result structs.ContestEffect, err error)
ContestEffect returns a single contest effect (by ID).
func ContestType ¶
func ContestType(id string) (result structs.ContestType, err error)
ContestType returns a single contest type (by name or ID).
func EncounterCondition ¶
func EncounterCondition(id string) (result structs.EncounterCondition, err error)
EncounterCondition returns a single encounter condition (by name or ID).
func EncounterConditionValue ¶
func EncounterConditionValue(id string) (result structs.EncounterConditionValue, err error)
EncounterConditionValue returns a single encounter condition value
(by name or ID).
func EncounterMethod ¶
func EncounterMethod(id string) (result structs.EncounterMethod, err error)
EncounterMethod returns a single encounter method (by name or ID).
func EvolutionChain ¶
func EvolutionChain(id string) (result structs.EvolutionChain, err error)
EvolutionChain returns a single evolution chain (by ID).
func EvolutionTrigger ¶
func EvolutionTrigger(id string) (result structs.EvolutionTrigger, err error)
EvolutionTrigger returns a single evolution trigger (by ID or name).
func Generation ¶
func Generation(id string) (result structs.Generation, err error)
Generation returns a single generation (by name or ID).
func GrowthRate ¶
func GrowthRate(id string) (result structs.GrowthRate, err error)
GrowthRate returns a single growth rate (by name or ID).
func ItemAttribute ¶
func ItemAttribute(id string) (result structs.ItemAttribute, err error)
ItemAttribute returns a single item attribute (by name or ID).
func ItemCategory ¶
func ItemCategory(id string) (result structs.ItemCategory, err error)
ItemCategory returns a single item category (by name or ID).
func ItemFlingEffect ¶
func ItemFlingEffect(id string) (result structs.ItemFlingEffect, err error)
ItemFlingEffect returns a single item fling effect (by name or ID).
func ItemPocket ¶
func ItemPocket(id string) (result structs.ItemPocket, err error)
ItemPocket returns a single item pocket (by name or ID).
func LocationArea ¶
func LocationArea(id string) (result structs.LocationArea, err error)
LocationArea returns a single location area (by name or ID).
func MoveAilment ¶
func MoveAilment(id string) (result structs.MoveAilment, err error)
MoveAilment returns a single move ailment (by name or ID).
func MoveBattleStyle ¶
func MoveBattleStyle(id string) (result structs.MoveBattleStyle, err error)
MoveBattleStyle returns a single move battle style (by name or ID).
func MoveCategory ¶
func MoveCategory(id string) (result structs.MoveCategory, err error)
MoveCategory returns a single move category (by name or ID).
func MoveDamageClass ¶
func MoveDamageClass(id string) (result structs.MoveDamageClass, err error)
MoveDamageClass returns a single move damage class (by name or ID).
func MoveLearnMethod ¶
func MoveLearnMethod(id string) (result structs.MoveLearnMethod, err error)
MoveLearnMethod returns a single move learn method (by name or ID).
func MoveTarget ¶
func MoveTarget(id string) (result structs.MoveTarget, err error)
MoveTarget returns a single move target (by name or ID).
func PalParkArea ¶
func PalParkArea(id string) (result structs.PalParkArea, err error)
PalParkArea returns a single Pal Park area (by name or ID).
func PokeathlonStat ¶
func PokeathlonStat(id string) (result structs.PokeathlonStat, err error)
PokeathlonStat returns a single Pokeathlon state (by name or ID).
func PokemonColor ¶
func PokemonColor(id string) (result structs.PokemonColor, err error)
PokemonColor returns a single Pokemon color (by name or ID).
func PokemonForm ¶
func PokemonForm(id string) (result structs.PokemonForm, err error)
PokemonForm returns a single Pokemon form (by name or ID).
func PokemonHabitat ¶
func PokemonHabitat(id string) (result structs.PokemonHabitat, err error)
PokemonHabitat returns a single Pokemon habitat (by name or ID).
func PokemonShape ¶
func PokemonShape(id string) (result structs.PokemonShape, err error)
PokemonShape returns a single Pokemon shape (by name or ID).
func PokemonSpecies ¶
func PokemonSpecies(id string) (result structs.PokemonSpecies, err error)
PokemonSpecies returns a single Pokemon species (by name or ID).
func SuperContestEffect ¶
func SuperContestEffect(id string) (result structs.SuperContestEffect, err error)
SuperContestEffect returns a single super contest effect (by ID).
func VersionGroup ¶
func VersionGroup(id string) (result structs.VersionGroup, err error)
VersionGroup returns a single version group (by name or ID).