api

package
v0.0.0-...-15439c3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ability

type Ability struct {
	Ability struct {
		Name string `json:"name"`
	} `json:"ability"`
}

type GameIndex

type GameIndex struct {
	Version struct {
		Name string `json:"name"`
	} `json:"version"`
}

type Pokemon

type Pokemon struct {
	Height      int32       `json:"height"`
	Weight      int32       `json:"weight"`
	Abilities   []Ability   `json:"abilities"`
	GameIndices []GameIndex `json:"game_indices"`
	Types       []Type      `json:"types"`
}

func GetPokemon

func GetPokemon(id int) (Pokemon, error)

type Type

type Type struct {
	Type struct {
		Name string `json:"name"`
	} `json:"type"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL