description

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

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