connections

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

func ApiCallSetup(rawURL string, target interface{}, skipHTTPSCheck bool) error

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 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL