pokecli/internal/api/pokeapi/namedapiresourcelist.go
Dan Anglin c35bd1d2d1
feat: explore the map and catch Pokemon
Changes:

- Added in-memory cache.
- Created a new package for defining the types from the pokeapi API.
- Created an internal package for the client.
- Added a command to explore the map.
- Added a command to catch Pokemon.
- Added a command to inspect a Pokemon from the Pokedex.
- Added a command to list all the Pokemon in the Pokedex.
2024-09-20 11:51:35 +01:00

13 lines
321 B
Go

package pokeapi
type NamedAPIResourceList struct {
Count int `json:"count"`
Next *string `json:"next"`
Previous *string `json:"previous"`
Results []NamedAPIResource `json:"results"`
}
type NamedAPIResource struct {
Name string `json:"name"`
URL string `json:"url"`
}