Versions in this module Expand all Collapse all v0 v0.2.0 Jun 14, 2026 v0.1.1 Jun 14, 2026 Changes in this version + type Ability struct + Effect string + ID int + Name string + PokemonCount int + ShortEffect string + type Berry struct + Firmness string + GiftPower int + GiftType string + GrowthTime int + ID int + MaxHarvest int + Name string type Client + func (c *Client) GetAbility(ctx context.Context, nameOrID string) (*Ability, error) + func (c *Client) GetBerry(ctx context.Context, nameOrID string) (*Berry, error) + func (c *Client) GetGeneration(ctx context.Context, nameOrID string) (*Generation, error) + func (c *Client) GetItem(ctx context.Context, nameOrID string) (*Item, error) + func (c *Client) GetMove(ctx context.Context, nameOrID string) (*Move, error) + func (c *Client) GetPokemon(ctx context.Context, nameOrID string) (*Pokemon, error) + func (c *Client) GetSpecies(ctx context.Context, nameOrID string) (*Species, error) + func (c *Client) GetType(ctx context.Context, nameOrID string) (*Type, error) + func (c *Client) List(ctx context.Context, limit, offset int) ([]PokemonListItem, error) + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Generation struct + ID int + MainRegion string + Name string + PokemonCount int + TypeCount int + type Item struct + Category string + Cost int + Effect string + FlingPower int + ID int + Name string + type Move struct + Accuracy int + DamageClass string + Effect string + ID int + Name string + PP int + Power int + Type string + type Pokemon struct + Abilities []string + Attack int + BaseExperience int + Defense int + HP int + Height int + ID int + Name string + SpAttack int + SpDefense int + Speed int + SpriteURL string + Types []string + URL string + Weight int + type PokemonListItem struct + Name string + Rank int + URL string + type Species struct + BaseHappiness int + CaptureRate int + Color string + FlavorText string + Generation string + ID int + IsLegendary bool + IsMythical bool + Name string + type Type struct + ID int + Name string + NoEffect []string + NotVeryEffective []string + PokemonCount int + SuperEffective []string + WeakTo []string v0.1.0 Jun 14, 2026 Changes in this version + const BaseURL + const DefaultUserAgent + const Host + type Client struct + HTTP *http.Client + Rate time.Duration + Retries int + UserAgent string + func NewClient() *Client + func (c *Client) Get(ctx context.Context, url string) ([]byte, error) + func (c *Client) GetPage(ctx context.Context, path string) (*Page, error) + func (c *Client) PageLinks(ctx context.Context, path string, limit int) ([]*Page, error) + type Domain struct + func (Domain) Classify(input string) (uriType, id string, err error) + func (Domain) Info() kit.DomainInfo + func (Domain) Locate(uriType, id string) (string, error) + func (Domain) Register(app *kit.App) + type Page struct + Body string + ID string + Title string + URL string