Documentation
¶
Index ¶
- func GetPokemon()
- func HttpDeleteRequest(url string, timeout time.Duration, jsonReq []byte) (int, []byte, error)
- func HttpGetRequest(url string, timeout time.Duration) (int, []byte, error)
- func HttpPostRequest(url string, timeout time.Duration, jsonReq []byte) (int, []byte, error)
- func HttpPutRequest(url string, timeout time.Duration, jsonReq []byte) (int, []byte, error)
- type Pokemon
- type PokemonSpecies
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPokemon ¶
func GetPokemon()
func HttpDeleteRequest ¶
func HttpPostRequest ¶
Types ¶
type Pokemon ¶
type Pokemon struct { EntryNo int `json:"entry_number"` Species PokemonSpecies `json:"pokemon_species"` }
A Pokemon Struct to map every pokemon to.
type PokemonSpecies ¶
type PokemonSpecies struct {
Name string `json:"name"`
}
A struct to map our Pokemon's Species which includes it's name
Click to show internal directories.
Click to hide internal directories.