Skip to content

Instantly share code, notes, and snippets.

@drKnoxy
Created December 30, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drKnoxy/12bd2b0b5b9f7edeb957ebceda1141f8 to your computer and use it in GitHub Desktop.
Save drKnoxy/12bd2b0b5b9f7edeb957ebceda1141f8 to your computer and use it in GitHub Desktop.
// PhotoResponse is thing
type PhotoResponse struct {
Total int `json:"total"`
TotalPages int `json:"total_pages"`
Results []Photo `json:"results"`
}
// Photo is thing
type Photo struct {
ID string `json:"id"`
Images ImageSet `json:"urls"`
// "created_at": "2016-09-09T08:59:35-04:00",
// "categories": [],
}
// ImageSet is thing
type ImageSet struct {
Raw string `json:"raw"`
Full string `json:"full"`
Regular string `json:"regular"`
Small string `json:"small"`
Thumb string `json:"thumb"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment