You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
933 B
33 lines
933 B
package main |
|
|
|
type APODResponse struct { |
|
Date string `json:"date"` |
|
Explanation string `json:"explanation"` |
|
Hdurl string `json:"hdurl"` |
|
MediaType string `json:"media_type"` |
|
ServiceVersion string `json:"service_version"` |
|
Title string `json:"title"` |
|
URL string `json:"url"` |
|
} |
|
|
|
type MarsResponse struct { |
|
Photos []struct { |
|
ID int `json:"id"` |
|
Sol int `json:"sol"` |
|
Camera struct { |
|
ID int `json:"id"` |
|
Name string `json:"name"` |
|
RoverID int `json:"rover_id"` |
|
FullName string `json:"full_name"` |
|
} `json:"camera"` |
|
ImgSrc string `json:"img_src"` |
|
EarthDate string `json:"earth_date"` |
|
Rover struct { |
|
ID int `json:"id"` |
|
Name string `json:"name"` |
|
LandingDate string `json:"landing_date"` |
|
LaunchDate string `json:"launch_date"` |
|
Status string `json:"status"` |
|
} `json:"rover"` |
|
} `json:"photos"` |
|
}
|
|
|