Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UnmarshalJson ¶
UnmarshalJson will take body as input & unmarshal it to res
Types ¶
type Res ¶
type Res struct {
Copyright string `json:"copyright"`
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"`
Code int `json:"code"`
Msg string `json:"msg"`
}
Res holds the response from the api.
Click to show internal directories.
Click to hide internal directories.