-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstruct.go
More file actions
115 lines (105 loc) · 4.23 KB
/
struct.go
File metadata and controls
115 lines (105 loc) · 4.23 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package main
type Planet struct {
Name string `json:"name"`
RotationPeriod string `json:"rotation_period"`
OrbitalPeriod string `json:"orbital_period"`
Diameter string `json:"diameter"`
Climate string `json:"climate"`
Gravity string `json:"gravity"`
Terrain string `json:"terrain"`
SurfaceWater string `json:"surface_water"`
Population string `json:"population"`
ResidentURLs []string `json:"residents"`
FilmURLs []string `json:"films"`
Created string `json:"created"`
Edited string `json:"edited"`
URL string `json:"url"`
}
type Species struct {
Name string `json:"name"`
Classification string `json:"classification"`
Designation string `json:"designation"`
AverageHeight string `json:"average_height"`
SkinColors string `json:"skin_colors"`
HairColors string `json:"hair_colors"`
EyeColors string `json:"eye_colors"`
AverageLifespan string `json:"average_lifespan"`
Homeworld string `json:"homeworld"`
Language string `json:"language"`
PeopleURLs []string `json:"people"`
FilmURLs []string `json:"films"`
Created string `json:"created"`
Edited string `json:"edited"`
URL string `json:"url"`
}
type Vehicle struct {
Name string `json:"name"`
Model string `json:"model"`
Manufacturer string `json:"manufacturer"`
CostInCredits string `json:"cost_in_credits"`
Length string `json:"length"`
MaxAtmospheringSpeed string `json:"max_atmosphering_speed"`
Crew string `json:"crew"`
Passengers string `json:"passengers"`
CargoCapacity string `json:"cargo_capacity"`
Consumables string `json:"consumables"`
VehicleClass string `json:"vehicle_class"`
PilotURLs []string `json:"pilots"`
FilmURLs []string `json:"films"`
Created string `json:"created"`
Edited string `json:"edited"`
URL string `json:"url"`
}
type Starship struct {
Name string `json:"name"`
Model string `json:"model"`
Manufacturer string `json:"manufacturer"`
CostInCredits string `json:"cost_in_credits"`
Length string `json:"length"`
MaxAtmospheringSpeed string `json:"max_atmosphering_speed"`
Crew string `json:"crew"`
Passengers string `json:"passengers"`
CargoCapacity string `json:"cargo_capacity"`
Consumables string `json:"consumables"`
HyperdriveRating string `json:"hyperdrive_rating"`
MGLT string `json:"MGLT"`
StarshipClass string `json:"starship_class"`
PilotURLs []string `json:"pilots"`
FilmURLs []string `json:"films"`
Created string `json:"created"`
Edited string `json:"edited"`
URL string `json:"url"`
}
type Person struct {
Name string `json:"name"`
Height string `json:"height"`
Mass string `json:"mass"`
HairColor string `json:"hair_color"`
SkinColor string `json:"skin_color"`
EyeColor string `json:"eye_color"`
BirthYear string `json:"birth_year"`
Gender string `json:"gender"`
Homeworld string `json:"homeworld"`
FilmURLs []string `json:"films"`
SpeciesURLs []string `json:"species"`
VehicleURLs []string `json:"vehicles"`
StarshipURLs []string `json:"starships"`
Created string `json:"created"`
Edited string `json:"edited"`
URL string `json:"url"`
}
type Film struct {
Title string `json:"title"`
EpisodeID int `json:"episode_id"`
OpeningCrawl string `json:"opening_crawl"`
Director string `json:"director"`
Producer string `json:"producer"`
CharacterURLs []string `json:"characters"`
PlanetURLs []string `json:"planets"`
StarshipURLs []string `json:"starships"`
VehicleURLs []string `json:"vehicles"`
SpeciesURLs []string `json:"species"`
Created string `json:"created"`
Edited string `json:"edited"`
URL string `json:"url"`
}