Documentation ¶
Index ¶
Constants ¶
View Source
const ( RawSize = "raw" FullSize = "full" RegularSize = "regular" SmallSize = "small" ThumbSize = "thumb" )
Variables ¶
View Source
var ErrInvalidSize = errors.New("invalid size request")
View Source
var ErrRequestFailed = errors.New("request failed")
ErrRequestFailed indicates a general error in service request.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { ID string `json:"id"` URLs struct { Raw string `json:"raw"` Full string `json:"full"` Regular string `json:"regular"` Small string `json:"small"` Thumb string `json:"thumb"` } `json:"urls"` Location struct { City string `json:"city"` Country string `json:"country"` } `json:"location"` Description string `json:"description"` }
Image represents unsplash image information.
Click to show internal directories.
Click to hide internal directories.