Documentation ¶
Overview ¶
Package bing provides a simple way to access bing API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 { StartDate string `json:"startdate"` FullStartDate string `json:"fullstartdate"` EndDate string `json:"enddate"` URL string `json:"url"` URLBase string `json:"urlbase"` Copyright string `json:"copyright"` CopyrightLink string `json:"copyrightlink"` Wallpaper bool `json:"wp"` Hash string `json:"hsh"` Drk int `json:"drk"` Top int `json:"top"` Bot int `json:"bot"` HS []HS `json:"hs"` Msg []string `json:"msg"` }
Image structure stores bing image information.
type Request ¶
type Request struct { Format string `url:"format"` Index int `url:"idx"` Number int `url:"n"` Mkt string `url:"mkt"` }
Request structure stores bing api request to json.
Click to show internal directories.
Click to hide internal directories.