Skip to content

Commit e72daa2

Browse files
updating struct to include egg groups (#188)
1 parent b03deb6 commit e72daa2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

structs/structs.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ type PokemonJSONStruct struct {
171171

172172
// PokemonSpeciesJSONStruct pokemon-species endpoint from API
173173
type PokemonSpeciesJSONStruct struct {
174-
Name string `json:"name"`
174+
Name string `json:"name"`
175+
EggGroups []struct {
176+
Name string `json:"name"`
177+
URL string `json:"url"`
178+
} `json:"egg_groups"`
175179
EvolvesFromSpecies struct {
176180
Name string `json:"name"`
177181
URL string `json:"url"`

0 commit comments

Comments
 (0)