Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Descriptor struct { APIURL string // contains filtered or unexported fields }
Descriptor provides an API to fetch the basic description of the pokemon using pokeapi service.
func NewDescriptor ¶
func NewDescriptor() *Descriptor
NewDescriptor is a factory method to return an instance of Descriptor type
func (*Descriptor) DescribePokemon ¶
func (d *Descriptor) DescribePokemon(resource string) *response.ServiceResponse
DescribePokemon a methods which accept the pokemon name and fetch the basic description of a pokemom
Click to show internal directories.
Click to hide internal directories.