Versions in this module Expand all Collapse all v1 v1.0.2 May 26, 2024 v1.0.1 May 26, 2024retracted Changes in this version type Client + func (c *Client) ListPokedexes(ctx context.Context, opts *ListOpts) (*Page[NamedAPIResource[Pokedex], Pokedex], error) + func (c *Client) ListPokemon(ctx context.Context, opts *ListOpts) (*Page[NamedAPIResource[Pokemon], Pokemon], error) + func (c *Client) ListPokemonSpecies(ctx context.Context, opts *ListOpts) (*Page[NamedAPIResource[PokemonSpecies], PokemonSpecies], error) v1.0.0 May 26, 2024retracted Changes in this version + type ListOpts struct + Limit int + Offset int v0 v0.3.0 May 19, 2024 Changes in this version + const PokemonLocationAreaEndpoint + type GettableAPIResource interface + Get func(ctx context.Context, client *Client) (*T, error) + type ResourceName string + func (rn ResourceName[R, T]) Get(ctx context.Context, c *Client, ident string) (*T, error) + func (rn ResourceName[R, T]) List(ctx context.Context, c *Client, opts *ListOptions) (*Page[R, T], error) + func (rn ResourceName[R, T]) String() string v0.2.0 May 18, 2024 Changes in this version + var ErrNotFound = HTTPError + func NewHTTPError(resp *http.Response) error + type CacheLoader func(context.Context) (any, error) + type ClientOpts struct + Cache Cache + HTTPClient *http.Client + PokeAPIRoot string + type HTTPError struct + Code int + func (e HTTPError) Error() string v0.1.0 May 15, 2024 Changes in this version + const DefaultPokeAPIRoot + var ErrListExhausted = fmt.Errorf("no more pages to fetch") + type APIResource struct + URL string + func (r APIResource[T]) Get(ctx context.Context, client *Client) (*T, error) + type Ability struct + EffectChanges []AbilityEffectChange + EffectEntries []VerboseEffect + FlavorTextEntries []AbilityFlavorText + Generation NamedAPIResource[Generation] + IsMainSeries bool + Names []Name + Pokemon []AbilityPokemon + type AbilityEffectChange struct + EffectEntries []Effect + VersionGroup NamedAPIResource[VersionGroup] + type AbilityFlavorText struct + FlavorText string + Language NamedAPIResource[Language] + VersionGroup NamedAPIResource[VersionGroup] + type AbilityPokemon struct + IsHidden bool + Pokemon NamedAPIResource[Pokemon] + Slot int + type AwesomeName struct + AwesomeName string + Language NamedAPIResource[Language] + type Berry struct + Firmness NamedAPIResource[BerryFirmness] + Flavors []BerryFlavorMap + GrowthTime int + Item NamedAPIResource[Item] + MaxHarvest int + NaturalGiftPower int + NaturalGiftType NamedAPIResource[Type] + Size int + Smoothness int + SoilDryness int + func (b Berry) GrowthTimeDuration() time.Duration + type BerryFirmness struct + Berries []NamedAPIResource[Berry] + Names []Name + type BerryFlavor struct + Berries []FlavorBerryMap + ContestType NamedAPIResource[ContestType] + Names []Name + type BerryFlavorMap struct + Flavor NamedAPIResource[BerryFlavor] + Potency int + type Cache interface + Lookup func(ctx context.Context, url string) CacheLookup + type CacheLookup interface + Close func(ctx context.Context) + Hydrate func(ctx context.Context, resource any) + Value func(ctx context.Context) (_ any, ok bool) + type ChainLink struct + EvolutionDetails []EvolutionDetail + EvolvesTo []ChainLink + IsBaby bool + Species NamedAPIResource[PokemonSpecies] + type Characteristic struct + Descriptions []Description + GeneModulo int + HighestStat NamedAPIResource[Stat] + PossibleValues []int + type Client struct + func NewClient(opts *NewClientOpts) *Client + func (c *Client) GetAbility(ctx context.Context, ident string) (*Ability, error) + func (c *Client) GetBerry(ctx context.Context, ident string) (*Berry, error) + func (c *Client) GetBerryFirmness(ctx context.Context, ident string) (*BerryFirmness, error) + func (c *Client) GetBerryFlavor(ctx context.Context, ident string) (*BerryFlavor, error) + func (c *Client) GetCharacteristic(ctx context.Context, id string) (*Characteristic, error) + func (c *Client) GetContestEffect(ctx context.Context, id string) (*ContestEffect, error) + func (c *Client) GetContestType(ctx context.Context, ident string) (*ContestType, error) + func (c *Client) GetEggGroup(ctx context.Context, ident string) (*EggGroup, error) + func (c *Client) GetEncounterCondition(ctx context.Context, ident string) (*EncounterCondition, error) + func (c *Client) GetEncounterConditionValue(ctx context.Context, ident string) (*EncounterConditionValue, error) + func (c *Client) GetEncounterMethod(ctx context.Context, ident string) (*EncounterMethod, error) + func (c *Client) GetEvolutionChain(ctx context.Context, id string) (*EvolutionChain, error) + func (c *Client) GetEvolutionTrigger(ctx context.Context, ident string) (*EvolutionTrigger, error) + func (c *Client) GetGender(ctx context.Context, ident string) (*Gender, error) + func (c *Client) GetGeneration(ctx context.Context, ident string) (*Generation, error) + func (c *Client) GetGrowthRate(ctx context.Context, ident string) (*GrowthRate, error) + func (c *Client) GetItem(ctx context.Context, ident string) (*Item, error) + func (c *Client) GetItemAttribute(ctx context.Context, ident string) (*ItemAttribute, error) + func (c *Client) GetItemCategory(ctx context.Context, ident string) (*ItemCategory, error) + func (c *Client) GetItemFlingEffect(ctx context.Context, ident string) (*ItemFlingEffect, error) + func (c *Client) GetItemPocket(ctx context.Context, ident string) (*ItemPocket, error) + func (c *Client) GetLanguage(ctx context.Context, ident string) (*Language, error) + func (c *Client) GetLocation(ctx context.Context, ident string) (*Location, error) + func (c *Client) GetLocationArea(ctx context.Context, ident string) (*LocationArea, error) + func (c *Client) GetMachine(ctx context.Context, id string) (*Machine, error) + func (c *Client) GetMove(ctx context.Context, ident string) (*Move, error) + func (c *Client) GetMoveAilment(ctx context.Context, ident string) (*MoveAilment, error) + func (c *Client) GetMoveBattleStyle(ctx context.Context, ident string) (*MoveBattleStyle, error) + func (c *Client) GetMoveCategory(ctx context.Context, ident string) (*MoveCategory, error) + func (c *Client) GetMoveDamageClass(ctx context.Context, ident string) (*MoveDamageClass, error) + func (c *Client) GetMoveLearnMethod(ctx context.Context, ident string) (*MoveLearnMethod, error) + func (c *Client) GetMoveTarget(ctx context.Context, ident string) (*MoveTarget, error) + func (c *Client) GetNature(ctx context.Context, ident string) (*Nature, error) + func (c *Client) GetPalParkArea(ctx context.Context, ident string) (*PalParkArea, error) + func (c *Client) GetPokeathlonStat(ctx context.Context, ident string) (*PokeathlonStat, error) + func (c *Client) GetPokedex(ctx context.Context, ident string) (*Pokedex, error) + func (c *Client) GetPokemon(ctx context.Context, ident string) (*Pokemon, error) + func (c *Client) GetPokemonColor(ctx context.Context, ident string) (*PokemonColor, error) + func (c *Client) GetPokemonEncounters(ctx context.Context, pokeIdent string) ([]PokemonLocationArea, error) + func (c *Client) GetPokemonForm(ctx context.Context, ident string) (*PokemonForm, error) + func (c *Client) GetPokemonHabitat(ctx context.Context, ident string) (*PokemonHabitat, error) + func (c *Client) GetPokemonShape(ctx context.Context, ident string) (*PokemonShape, error) + func (c *Client) GetPokemonSpecies(ctx context.Context, ident string) (*PokemonSpecies, error) + func (c *Client) GetRegion(ctx context.Context, ident string) (*Region, error) + func (c *Client) GetStat(ctx context.Context, ident string) (*Stat, error) + func (c *Client) GetSuperContestEffect(ctx context.Context, id string) (*SuperContestEffect, error) + func (c *Client) GetType(ctx context.Context, ident string) (*Type, error) + func (c *Client) GetVersion(ctx context.Context, ident string) (*Version, error) + func (c *Client) GetVersionGroup(ctx context.Context, ident string) (*VersionGroup, error) + func (c *Client) ListAbilities(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Ability], Ability], error) + func (c *Client) ListBerries(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Berry], Berry], error) + func (c *Client) ListBerryFirmnesses(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[BerryFirmness], BerryFirmness], error) + func (c *Client) ListBerryFlavors(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[BerryFlavor], BerryFlavor], error) + func (c *Client) ListCharacteristics(ctx context.Context, opts *ListOptions) (*Page[APIResource[Characteristic], Characteristic], error) + func (c *Client) ListContestEffects(ctx context.Context, opts *ListOptions) (*Page[APIResource[ContestEffect], ContestEffect], error) + func (c *Client) ListContestTypes(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[ContestType], ContestType], error) + func (c *Client) ListEggGroups(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[EggGroup], EggGroup], error) + func (c *Client) ListEncounterConditionValues(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[EncounterConditionValue], EncounterConditionValue], ...) + func (c *Client) ListEncounterConditions(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[EncounterCondition], EncounterCondition], error) + func (c *Client) ListEncounterMethods(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[EncounterMethod], EncounterMethod], error) + func (c *Client) ListEvolutionChains(ctx context.Context, opts *ListOptions) (*Page[APIResource[EvolutionChain], EvolutionChain], error) + func (c *Client) ListEvolutionTriggers(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[EvolutionTrigger], EvolutionTrigger], error) + func (c *Client) ListGenders(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Gender], Gender], error) + func (c *Client) ListGenerations(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Generation], Generation], error) + func (c *Client) ListGrowthRates(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[GrowthRate], GrowthRate], error) + func (c *Client) ListItemAttributes(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[ItemAttribute], ItemAttribute], error) + func (c *Client) ListItemCategories(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[ItemCategory], ItemCategory], error) + func (c *Client) ListItemFlingEffects(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[ItemFlingEffect], ItemFlingEffect], error) + func (c *Client) ListItemPockets(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[ItemPocket], ItemPocket], error) + func (c *Client) ListItems(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Item], Item], error) + func (c *Client) ListLanguages(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Language], Language], error) + func (c *Client) ListLocationAreas(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[LocationArea], LocationArea], error) + func (c *Client) ListLocations(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Location], Location], error) + func (c *Client) ListMachines(ctx context.Context, opts *ListOptions) (*Page[APIResource[Machine], Machine], error) + func (c *Client) ListMoveAilments(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[MoveAilment], MoveAilment], error) + func (c *Client) ListMoveBattleStyles(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[MoveBattleStyle], MoveBattleStyle], error) + func (c *Client) ListMoveCategories(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[MoveCategory], MoveCategory], error) + func (c *Client) ListMoveDamageClasses(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[MoveDamageClass], MoveDamageClass], error) + func (c *Client) ListMoveLearnMethods(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[MoveLearnMethod], MoveLearnMethod], error) + func (c *Client) ListMoveTargets(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[MoveTarget], MoveTarget], error) + func (c *Client) ListMoves(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Move], Move], error) + func (c *Client) ListNatures(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Nature], Nature], error) + func (c *Client) ListPalParkAreas(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PalParkArea], PalParkArea], error) + func (c *Client) ListPokeathlonStats(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PokeathlonStat], PokeathlonStat], error) + func (c *Client) ListPokedexs(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Pokedex], Pokedex], error) + func (c *Client) ListPokemonColors(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PokemonColor], PokemonColor], error) + func (c *Client) ListPokemonForms(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PokemonForm], PokemonForm], error) + func (c *Client) ListPokemonHabitats(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PokemonHabitat], PokemonHabitat], error) + func (c *Client) ListPokemonShapes(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PokemonShape], PokemonShape], error) + func (c *Client) ListPokemonSpecieses(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[PokemonSpecies], PokemonSpecies], error) + func (c *Client) ListPokemons(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Pokemon], Pokemon], error) + func (c *Client) ListRegions(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Region], Region], error) + func (c *Client) ListStats(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Stat], Stat], error) + func (c *Client) ListSuperContestEffects(ctx context.Context, opts *ListOptions) (*Page[APIResource[SuperContestEffect], SuperContestEffect], error) + func (c *Client) ListTypes(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Type], Type], error) + func (c *Client) ListVersionGroups(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[VersionGroup], VersionGroup], error) + func (c *Client) ListVersions(ctx context.Context, opts *ListOptions) (*Page[NamedAPIResource[Version], Version], error) + type ContestComboDetail struct + UseAfter []NamedAPIResource[Move] + UseBefore []NamedAPIResource[Move] + type ContestComboSets struct + Normal *ContestComboDetail + Super *ContestComboDetail + type ContestEffect struct + Appeal int + EffectEntries []Effect + FlavorTextEntries []FlavorText + Jam int + type ContestName struct + Color string + Language NamedAPIResource[Language] + Name string + type ContestType struct + BerryFlavour NamedAPIResource[BerryFlavor] + Names []ContestName + type Description struct + Description string + Language NamedAPIResource[Language] + type Effect struct + Description string + Language NamedAPIResource[Language] + type EggGroup struct + Names []Name + PokemonSpecies []NamedAPIResource[PokemonSpecies] + type Encounter struct + Chance int + ConditionValues []NamedAPIResource[EncounterConditionValue] + MaxLevel int + Method NamedAPIResource[EncounterMethod] + MinLevel int + type EncounterCondition struct + Names []Name + Values []NamedAPIResource[EncounterConditionValue] + type EncounterConditionValue struct + Condition NamedAPIResource[EncounterCondition] + Names []Name + type EncounterMethod struct + Names []Name + Order int + type EncounterMethodRate struct + EncounterMethod NamedAPIResource[EncounterMethod] + VersionDetails []EncounterVersionDetails + type EncounterVersionDetails struct + Rate int + Version NamedAPIResource[Version] + type EvolutionChain struct + BabyTriggerItem *NamedAPIResource[Item] + Chain *ChainLink + type EvolutionDetail struct + Gender *int + HeldItem *NamedAPIResource[Item] + Item *NamedAPIResource[Item] + KnownMove *NamedAPIResource[Move] + KnownMoveType *NamedAPIResource[Type] + Location *NamedAPIResource[Location] + MinAffection *int + MinBeauty *int + MinHappiness *int + MinLevel *int + NeedsOverworldRain bool + PartySpecies *NamedAPIResource[PokemonSpecies] + PartyType *NamedAPIResource[Type] + RelativePhysicalStats *int + TimeOfDay string + TradeSpecies *NamedAPIResource[PokemonSpecies] + Trigger NamedAPIResource[EvolutionTrigger] + TurnUpsideDown bool + type EvolutionTrigger struct + Names []Name + PokemonSpecies []NamedAPIResource[PokemonSpecies] + type FlavorBerryMap struct + Berry NamedAPIResource[Berry] + Potency int + type FlavorText struct + FlavorText string + Language NamedAPIResource[Language] + Version NamedAPIResource[Version] + func (ft FlavorText) NormalizedFlavorText() string + type Gender struct + PokemonSpeciesDetails []PokemonSpeciesGender + RequiredForEvolution []NamedAPIResource[PokemonSpecies] + type Generation struct + Abilities []NamedAPIResource[Ability] + MainRegion NamedAPIResource[Region] + Moves []NamedAPIResource[Move] + Names []Name + PokemonSpecies []NamedAPIResource[PokemonSpecies] + Types []NamedAPIResource[Type] + VersionGroups []NamedAPIResource[VersionGroup] + type GenerationGameIndex struct + GameIndex int + Generation NamedAPIResource[Generation] + type Genus struct + Genus string + Language NamedAPIResource[Language] + type GrowthRate struct + Descriptions []Description + Formula string + Levels []GrowthRateExperienceLevel + PokemonSpecies []NamedAPIResource[PokemonSpecies] + type GrowthRateExperienceLevel struct + Experience int + Level int + type HTTPErr struct + Status string + StatusCode int + func (e HTTPErr) Error() string + type Identifier struct + ID int + func (id Identifier) Ident() string + type Item struct + Attributes []NamedAPIResource[ItemAttribute] + BabyTriggerFor *APIResource[EvolutionChain] + Category NamedAPIResource[ItemCategory] + Cost int + EffectEntries []VerboseEffect + FlavorTextEntries []VersionGroupFlavorText + FlingEffect *NamedAPIResource[ItemFlingEffect] + FlingPower *int + GameIndices []GenerationGameIndex + HeldByPokemon []ItemHolderPokemon + Machines []MachineVersionDetail + Names []Name + Sprites sprites.Item + type ItemAttribute struct + Descriptions []Description + Names []Name + type ItemCategory struct + Items []NamedAPIResource[Item] + Names []Name + Pocket NamedAPIResource[ItemPocket] + type ItemFlingEffect struct + EffectEntries []Effect + Items []NamedAPIResource[Item] + type ItemHolderPokemon struct + Pokemon NamedAPIResource[Pokemon] + VersionDetails []ItemHolderPokemonVersionDetail + type ItemHolderPokemonVersionDetail struct + Rarity int + Version NamedAPIResource[Version] + type ItemPocket struct + Categories []NamedAPIResource[ItemCategory] + Names []Name + type Language struct + IS3166 string + IS369 string + Names []Name + Official bool + type ListOptions struct + Limit int + Offset int + type Location struct + Areas []NamedAPIResource[LocationArea] + GameIndices []GenerationGameIndex + Names []Name + Region *NamedAPIResource[Region] + type LocationArea struct + EncounterMethodRates []EncounterMethodRate + GameIndex int + Location NamedAPIResource[Location] + Names []Name + PokemonEncounters []PokemonEncounter + type Machine struct + Item NamedAPIResource[Item] + Move NamedAPIResource[Move] + VersionGroup NamedAPIResource[VersionGroup] + type MachineVersionDetail struct + Machine APIResource[Machine] + VersionGroup NamedAPIResource[VersionGroup] + type Move struct + Accuracy *int + ContestCombos *ContestComboSets + ContestEffect *APIResource[ContestEffect] + ContestType *NamedAPIResource[ContestType] + DamageClass NamedAPIResource[MoveDamageClass] + EffectChance *int + EffectChanges []AbilityEffectChange + EffectEntries []VerboseEffect + FlavorTextEntries []MoveFlavorText + Generation NamedAPIResource[Generation] + LearnedByPokemon []NamedAPIResource[Pokemon] + Machines []MachineVersionDetail + Meta *MoveMetaData + PP int + PastValues []PastMoveStatValues + Power *int + Priority int + StatChanges []MoveStatChange + SuperContestEffect *APIResource[SuperContestEffect] + Target NamedAPIResource[MoveTarget] + Type NamedAPIResource[Type] + type MoveAilment struct + Moves []NamedAPIResource[Move] + Names []Name + type MoveBattleStyle struct + Names []Name + type MoveBattleStylePreference struct + HighHPPreference int + LowHPPreference int + MoveBattleStyle NamedAPIResource[MoveBattleStyle] + type MoveCategory struct + Descriptions []Description + Moves []NamedAPIResource[Move] + type MoveDamageClass struct + Descriptions []Description + Moves []NamedAPIResource[Move] + Names []Name + type MoveFlavorText struct + FlavorText string + Language NamedAPIResource[Language] + VersionGroup NamedAPIResource[VersionGroup] + type MoveLearnMethod struct + Descriptions []Description + Names []Name + VersionGroups []NamedAPIResource[VersionGroup] + type MoveMetaData struct + Ailment NamedAPIResource[MoveAilment] + AilmentChance int + Category NamedAPIResource[MoveCategory] + CritRate int + Drain int + FlinchChance int + Healing int + MaxHits *int + MaxTurns *int + MinHits *int + MinTurns *int + StatChance int + type MoveStatAffect struct + Change int + Move NamedAPIResource[Move] + type MoveStatAffectSets struct + Decrease []MoveStatAffect + Increase []MoveStatAffect + type MoveStatChange struct + Change int + Stat NamedAPIResource[Stat] + type MoveTarget struct + Descriptions []Description + Moves []NamedAPIResource[Move] + Names []Name + type Name struct + Language NamedAPIResource[Language] + Name string + type NamedAPIResource struct + Name string + type NamedIdentifier struct + Name string + type Nature struct + DecreasedStat *NamedAPIResource[Stat] + HatesFlavour *NamedAPIResource[BerryFlavor] + IncreasedStat *NamedAPIResource[Stat] + LikesFlavour *NamedAPIResource[BerryFlavor] + MoveBattleStylePreferences []MoveBattleStylePreference + Names []Name + PokeathlonStatChanges []NatureStatChange + type NaturePokeathlonStatAffect struct + MaxChange int + Nature NamedAPIResource[Nature] + type NaturePokeathlonStatAffectSets struct + Decrease []NaturePokeathlonStatAffect + Increase []NaturePokeathlonStatAffect + type NatureStatAffectSets struct + Decrease []NamedAPIResource[Nature] + Increase []NamedAPIResource[Nature] + type NatureStatChange struct + MaxChange int + PokeathlonStat NamedAPIResource[PokeathlonStat] + type NewClientOpts struct + Cache Cache + HTTPClient *http.Client + PokeAPIRoot string + type Page struct + Count int + Next *string + Previous *string + Results []R + func (p *Page[R, T]) GetNext(ctx context.Context, client *Client) (*Page[R, T], error) + func (p *Page[R, T]) GetPrevious(ctx context.Context, client *Client) (*Page[R, T], error) + type PalParkArea struct + Names []Name + PokemonEncounters []PalParkEncounterSpecies + type PalParkEncounterArea struct + Area NamedAPIResource[PalParkArea] + BaseScore int + Rate int + type PalParkEncounterSpecies struct + BaseScore int + PokemonSpecies NamedAPIResource[PokemonSpecies] + Rate int + type PastMoveStatValues struct + Accuracy *int + EffectChance *int + EffectEntries []VerboseEffect + PP *int + Power *int + Type *NamedAPIResource[Type] + VersionGroup NamedAPIResource[VersionGroup] + type PokeathlonStat struct + AffectingNatures []NaturePokeathlonStatAffectSets + Names []Name + type Pokedex struct + Descriptions []Description + IsMainSeries bool + Names []Name + PokemonEntries []PokemonEntry + Region *NamedAPIResource[Region] + VersionGroups []NamedAPIResource[VersionGroup] + type Pokemon struct + Abilities []PokemonAbility + BaseExperience int + Cries PokemonCries + Forms []NamedAPIResource[PokemonForm] + GameIndices []VersionGameIndex + Height int + HeldItems []PokemonHeldItem + IsDefault bool + LocationAreaEncounters string + Moves []PokemonMove + Order int + PastTypes []PokemonTypePast + Species NamedAPIResource[PokemonSpecies] + Sprites sprites.Pokemon + Stats []PokemonStat + Types []PokemonType + Weight int + func (p Pokemon) GetEncounters(ctx context.Context, c *Client) ([]PokemonLocationArea, error) + func (p Pokemon) HeightMillimeters() int + func (p Pokemon) WeightGrams() int + type PokemonAbility struct + Ability NamedAPIResource[Ability] + IsHidden bool + Slot int + type PokemonColor struct + Names []string + PokemonSpecies []NamedAPIResource[PokemonSpecies] + type PokemonCries struct + Latest string + Legacy *string + type PokemonEncounter struct + Pokemon NamedAPIResource[Pokemon] + VersionDetails []VersionEncounterDetail + type PokemonEntry struct + EntryNumber int + PokemonSpecies NamedAPIResource[PokemonSpecies] + type PokemonForm struct + FormName string + FormNames []Name + FormOrder int + IsBattleOnly bool + IsDefault bool + IsMega bool + Names []Name + Order int + Sprites sprites.PokemonForm + Types []PokemonFormType + VersionGroup NamedAPIResource[VersionGroup] + type PokemonFormType struct + Slot int + Type NamedAPIResource[Type] + type PokemonHabitat struct + Names []Name + PokemonSpecies []NamedAPIResource[PokemonSpecies] + type PokemonHeldItem struct + Item NamedAPIResource[Item] + VersionDetails []PokemonHeldItemVersion + type PokemonHeldItemVersion struct + Rarity int + Version NamedAPIResource[Version] + type PokemonLocationArea struct + LocationArea NamedAPIResource[LocationArea] + VersionDetails []VersionEncounterDetail + type PokemonMove struct + Move NamedAPIResource[Move] + VersionGroupDetails []PokemonMoveVersion + type PokemonMoveVersion struct + LevelLearnedAt int + MoveLearnMethod NamedAPIResource[MoveLearnMethod] + VersionGroup NamedAPIResource[VersionGroup] + type PokemonShape struct + AwesomeNames []AwesomeName + Names []Name + PokemonSpecies []NamedAPIResource[PokemonSpecies] + type PokemonSpecies struct + BaseHappiness uint8 + CaptureRate uint8 + Color NamedAPIResource[PokemonColor] + EggGroups []NamedAPIResource[EggGroup] + EvolutionChain APIResource[EvolutionChain] + EvolvesFromSpecies *NamedAPIResource[PokemonSpecies] + FlavorTextEntries []FlavorText + FormDescriptions []Description + FormsSwitchable bool + GenderRate int + Genera []Genus + Generation NamedAPIResource[Generation] + GrowthRate NamedAPIResource[GrowthRate] + Habitat *NamedAPIResource[PokemonHabitat] + HasGenderDifferences bool + HatchCounter int + IsBaby bool + IsLegendary bool + IsMythical bool + Names []Name + Order int + PalParkEncounters []PalParkEncounterArea + PokedexNumbers []PokemonSpeciesDexEntry + Shape NamedAPIResource[PokemonShape] + Varieties []PokemonSpeciesVariety + type PokemonSpeciesDexEntry struct + EntryNumber int + Pokedex []NamedAPIResource[Pokedex] + type PokemonSpeciesGender struct + PokemonSpecies NamedAPIResource[PokemonSpecies] + Rate int + type PokemonSpeciesVariety struct + IsDefault bool + Pokemon NamedAPIResource[Pokemon] + type PokemonStat struct + BaseStat int + Effort int + Stat NamedAPIResource[Stat] + type PokemonType struct + Slot int + Type NamedAPIResource[Type] + type PokemonTypePast struct + Generation NamedAPIResource[Generation] + Types []PokemonType + type Region struct + Locations []NamedAPIResource[Location] + MainGeneration *NamedAPIResource[Generation] + Names []Name + Pokedexes []NamedAPIResource[Pokedex] + VersionGroups []NamedAPIResource[VersionGroup] + type Resource string + const AbilityResource + const BerryFirmnessResource + const BerryFlavorResource + const BerryResource + const CharacteristicResource + const ContestEffectResource + const ContestTypeResource + const EggGroupResource + const EncounterConditionResource + const EncounterConditionValueResource + const EncounterMethodResource + const EvolutionChainResource + const EvolutionTriggerResource + const GenderResource + const GenerationResource + const GrowthRateResource + const ItemAttributeResource + const ItemCategoryResource + const ItemFlingEffectResource + const ItemPocketResource + const ItemResource + const LanguageResource + const LocationAreaResource + const LocationResource + const MachineResource + const MoveAilmentResource + const MoveBattleStyleResource + const MoveCategoryResource + const MoveDamageClassResource + const MoveLearnMethodResource + const MoveResource + const MoveTargetResource + const NatureResource + const PalParkAreaResource + const PokeathlonStatResource + const PokedexResource + const PokemonColorResource + const PokemonFormResource + const PokemonHabitatResource + const PokemonLocationAreaResource + const PokemonResource + const PokemonShapeResource + const PokemonSpeciesResource + const RegionResource + const StatResource + const SuperContestEffectResource + const TypeResource + const VersionGroupResource + const VersionResource + type Stat struct + AffectingMoves MoveStatAffectSets + AffectingNatures NatureStatAffectSets + Characteristics []APIResource[Characteristic] + GameIndex int + IsBattleOnly bool + MoveDamageClass *NamedAPIResource[MoveDamageClass] + Names []Name + type SuperContestEffect struct + Appeal int + FlavorTextEntries []FlavorText + Moves []NamedAPIResource[Move] + type Type struct + DamageRelations TypeRelations + GameIndices []GenerationGameIndex + Generation NamedAPIResource[Generation] + MoveDamageClass *NamedAPIResource[MoveDamageClass] + Moves []NamedAPIResource[Move] + Names []Name + PastDamageRelations []TypeRelationsPast + Pokemon []TypePokemon + type TypePokemon struct + Pokemon NamedAPIResource[Pokemon] + Slot int + type TypeRelations struct + DoubleDamageFrom []NamedAPIResource[Type] + DoubleDamageTo []NamedAPIResource[Type] + HalfDamageFrom []NamedAPIResource[Type] + HalfDamageTo []NamedAPIResource[Type] + NoDamageFrom []NamedAPIResource[Type] + NoDamageTo []NamedAPIResource[Type] + type TypeRelationsPast struct + DamageRelations TypeRelations + Generation NamedAPIResource[Generation] + type VerboseEffect struct + Effect string + Language NamedAPIResource[Language] + ShortEffect string + type Version struct + Names []Name + VersionGroup NamedAPIResource[VersionGroup] + type VersionEncounterDetail struct + EncounterDetails []Encounter + MaxChance int + Version NamedAPIResource[Version] + type VersionGameIndex struct + GameIndex int + Version NamedAPIResource[Version] + type VersionGroup struct + Generation NamedAPIResource[Generation] + MoveLearnMethods []NamedAPIResource[MoveLearnMethod] + Order int + Pokedexes []NamedAPIResource[Pokedex] + Regions []NamedAPIResource[Region] + Versions []NamedAPIResource[Version] + type VersionGroupFlavorText struct + Language NamedAPIResource[Language] + Text string + VersionGroup NamedAPIResource[VersionGroup]