-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
37 lines (30 loc) · 956 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package main
type PokemonGeneralData struct {
Name string `json:"name"`
}
type PokemonType struct {
TypeData PokemonGeneralData `json:"type"`
}
type PokemonData struct {
Types []PokemonType `json:"types"`
Height int `json:"height"`
Weight int `json:"weight"`
Id int `json:"id"`
}
type PokemonSpeciesGenera struct {
Genus string `json:"genus"`
Language PokemonGeneralData `json:"language"`
}
type PokemonSpeciesName struct {
Name string `json:"name"`
Language PokemonGeneralData `json:"language"`
}
type PokemonSpeciesFlavorText struct {
FlavorText string `json:"flavor_text"`
Language PokemonGeneralData `json:"language"`
}
type PokemonSpeciesData struct {
Names []PokemonSpeciesName `json:"names"`
Genera []PokemonSpeciesGenera `json:"genera"`
FlavorTextEntries []PokemonSpeciesFlavorText `json:"flavor_text_entries"`
}