generated from templates/go-generic
Dan Anglin
c35bd1d2d1
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.
13 lines
321 B
Go
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"`
|
|
}
|