Documentation
¶
Index ¶
- Constants
- func AbilityApiCall(endpoint string, abilityName string, baseURL string) (structs.AbilityJSONStruct, string, error)
- func ApiCallSetup(rawURL string, target interface{}, skipHTTPSCheck bool) error
- func ItemApiCall(endpoint string, itemName string, baseURL string) (structs.ItemJSONStruct, string, error)
- func MoveApiCall(endpoint string, moveName string, baseURL string) (structs.MoveJSONStruct, string, error)
- func PokemonApiCall(endpoint string, pokemonName string, baseURL string) (structs.PokemonJSONStruct, string, error)
- func PokemonSpeciesApiCall(endpoint string, pokemonSpeciesName string, baseURL string) (structs.PokemonSpeciesJSONStruct, error)
- func QueryBerryData(query string, args ...interface{}) ([]string, error)
- func TypesApiCall(endpoint string, typesName string, baseURL string) (structs.TypesJSONStruct, string, int)
Constants ¶
View Source
const APIURL = "https://pokeapi.co/api/v2/"
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 ItemApiCall ¶ added in v1.4.0
func ItemApiCall(endpoint string, itemName string, baseURL string) (structs.ItemJSONStruct, string, error)
ItemApiCall function for calling the item endpoint of the pokeAPI
func MoveApiCall ¶ added in v1.2.0
func MoveApiCall(endpoint string, moveName string, baseURL string) (structs.MoveJSONStruct, string, error)
MoveApiCall function for calling the move endpoint of the pokeAPI
func PokemonApiCall ¶
func PokemonApiCall(endpoint string, pokemonName string, baseURL string) (structs.PokemonJSONStruct, string, error)
PokemonApiCall function for calling the pokemon endpoint of the pokeAPI
func PokemonSpeciesApiCall ¶ added in v1.6.1
func PokemonSpeciesApiCall(endpoint string, pokemonSpeciesName string, baseURL string) (structs.PokemonSpeciesJSONStruct, error)
PokemonSpeciesApiCall function for calling the pokemon endpoint of the pokeAPI
func QueryBerryData ¶ added in v1.7.0
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.