handler

package
v0.0.0-...-c2b7237 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPokemonNotFound = errors.New("pokemon not found")
	ErrPokeApiFailure  = errors.New("pokeapi failure")
)

Functions

func GetPokemonFromPokeApi

func GetPokemonFromPokeApi(id string) (*models.PokeApiPokemonResponse, error)

func HandlerGetPokemon

func HandlerGetPokemon(w http.ResponseWriter, r *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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