pokedex

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterResultByName

func FilterResultByName(name *string, list PokemonResultsList) []int

func ListPokemonURL

func ListPokemonURL(limit, offset int) string

func PokemonURL

func PokemonURL(id int) string

Types

type Pokedex

type Pokedex struct {
	// contains filtered or unexported fields
}

func NewPokedex

func NewPokedex(_ Props) *Pokedex

func (*Pokedex) GetChildren

func (p *Pokedex) GetChildren() []goFE.Component

func (*Pokedex) GetID

func (p *Pokedex) GetID() uuid.UUID

func (*Pokedex) InitEventListeners

func (p *Pokedex) InitEventListeners()

func (*Pokedex) Render

func (p *Pokedex) Render() string

type PokemonResults

type PokemonResults struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
	URL  string `json:"url"`
}

type PokemonResultsList

type PokemonResultsList struct {
	Count   int              `json:"count"`
	Results []PokemonResults `json:"results"`
}

type Props

type Props struct{}

Jump to

Keyboard shortcuts

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