Documentation
¶
Index ¶
- func AbilityApiCall(endpoint string, abilityName string, baseURL string) (structs.AbilityJSONStruct, string, error)
- func ApiCallSetup(rawURL string, target interface{}, skipHTTPSCheck bool) error
- func PokemonApiCall(endpoint string, pokemonName string, baseURL string) (structs.PokemonJSONStruct, string, int, int, int, error)
- func TypesApiCall(endpoint string, typesName string, baseURL string) (structs.TypesJSONStruct, string, int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbilityApiCall ¶ added in v0.12.0
func AbilityApiCall(endpoint string, abilityName string, baseURL string) (structs.AbilityJSONStruct, string, error)
AbilityApiCall function for calling the ability endpoint of the pokeAPI
func ApiCallSetup ¶
ApiCallSetup Helper function to handle API calls and JSON unmarshalling
func PokemonApiCall ¶
func PokemonApiCall(endpoint string, pokemonName string, baseURL string) (structs.PokemonJSONStruct, string, int, int, int, error)
PokemonApiCall function for calling the pokemon endpoint of the pokeAPI
func TypesApiCall ¶
func TypesApiCall(endpoint string, typesName string, baseURL string) (structs.TypesJSONStruct, string, int)
TypesApiCall function for calling the type endpoint of the pokeAPI
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.