internal

package
v0.0.0-...-9cf59af Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PokeApiBaseUrl           = "https://pokeapi.co/api/v2"
	ErrorStringGetByNameOrId = "Unable to find %s by name or id of: %s"
	ErrorStringGetById       = "Unable to find %s by id of: %s"
)

Variables

This section is empty.

Functions

func Get

func Get(url string) []byte

func GetResourceList

func GetResourceList(url string) structs.Resource

func WriteCSV

func WriteCSV(data interface{}, outputDir string, outputName string)

func WriteJSON

func WriteJSON(data interface{}, outputDir string, outputName string)

func WriteXML

func WriteXML(data interface{}, outputDir string, outputName string)

func WriteYAML

func WriteYAML(data interface{}, outputDir string, outputName string)

Types

type Encounter

type Encounter struct {
	MinLevel        int              `json:"min_level"`
	MaxLevel        int              `json:"max_level"`
	ConditionValues []structs.Result `json:"condition_values"`
	Chance          int              `json:"chance"`
	Method          structs.Result   `json:"method"`
}

type LocationAreaEncounter

type LocationAreaEncounter struct {
	LocationArea  structs.Result           `json:"location_area"`
	VersionDetail []VersionEncounterDetail `json:"version_details"`
}

type VersionEncounterDetail

type VersionEncounterDetail struct {
	Version          structs.Result `json:"version"`
	MaxChance        int            `json:"max_chance"`
	EncounterDetails []Encounter    `json:"encounter_details"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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