Versions in this module Expand all Collapse all v24 v24.1.0 Jan 15, 2019 v24.0.0 Dec 19, 2018 Changes in this version + const DefaultEndpoint + func UserAgent() string + func Version() string + type Answer struct + ID *string + ReadLink *string + Type Type + WebSearchURL *string + func (a Answer) AsAnswer() (*Answer, bool) + func (a Answer) AsBasicAnswer() (BasicAnswer, bool) + func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (a Answer) AsBasicMediaObject() (BasicMediaObject, bool) + func (a Answer) AsBasicResponse() (BasicResponse, bool) + func (a Answer) AsBasicResponseBase() (BasicResponseBase, bool) + func (a Answer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (a Answer) AsBasicThing() (BasicThing, bool) + func (a Answer) AsCreativeWork() (*CreativeWork, bool) + func (a Answer) AsErrorResponse() (*ErrorResponse, bool) + func (a Answer) AsIdentifiable() (*Identifiable, bool) + func (a Answer) AsImageObject() (*ImageObject, bool) + func (a Answer) AsImages() (*Images, bool) + func (a Answer) AsMediaObject() (*MediaObject, bool) + func (a Answer) AsResponse() (*Response, bool) + func (a Answer) AsResponseBase() (*ResponseBase, bool) + func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (a Answer) AsThing() (*Thing, bool) + func (a Answer) AsWebPage() (*WebPage, bool) + func (a Answer) MarshalJSON() ([]byte, error) + type BaseClient struct + Endpoint string + func New() BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + type BasicAnswer interface + AsAnswer func() (*Answer, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsImages func() (*Images, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + type BasicCreativeWork interface + AsBasicMediaObject func() (BasicMediaObject, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsWebPage func() (*WebPage, bool) + type BasicIdentifiable interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsBasicResponse func() (BasicResponse, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsIdentifiable func() (*Identifiable, bool) + AsImageObject func() (*ImageObject, bool) + AsImages func() (*Images, bool) + AsMediaObject func() (*MediaObject, bool) + AsResponse func() (*Response, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsWebPage func() (*WebPage, bool) + type BasicMediaObject interface + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + type BasicResponse interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsImageObject func() (*ImageObject, bool) + AsImages func() (*Images, bool) + AsMediaObject func() (*MediaObject, bool) + AsResponse func() (*Response, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsWebPage func() (*WebPage, bool) + type BasicResponseBase interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicIdentifiable func() (BasicIdentifiable, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsBasicResponse func() (BasicResponse, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsIdentifiable func() (*Identifiable, bool) + AsImageObject func() (*ImageObject, bool) + AsImages func() (*Images, bool) + AsMediaObject func() (*MediaObject, bool) + AsResponse func() (*Response, bool) + AsResponseBase func() (*ResponseBase, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsWebPage func() (*WebPage, bool) + type BasicSearchResultsAnswer interface + AsImages func() (*Images, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + type BasicThing interface + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsThing func() (*Thing, bool) + AsWebPage func() (*WebPage, bool) + type CreativeWork struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ReadLink *string + Text *string + ThumbnailURL *string + Type Type + URL *string + WebSearchURL *string + func (cw *CreativeWork) UnmarshalJSON(body []byte) error + func (cw CreativeWork) AsAnswer() (*Answer, bool) + func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool) + func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (cw CreativeWork) AsBasicMediaObject() (BasicMediaObject, bool) + func (cw CreativeWork) AsBasicResponse() (BasicResponse, bool) + func (cw CreativeWork) AsBasicResponseBase() (BasicResponseBase, bool) + func (cw CreativeWork) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (cw CreativeWork) AsBasicThing() (BasicThing, bool) + func (cw CreativeWork) AsCreativeWork() (*CreativeWork, bool) + func (cw CreativeWork) AsErrorResponse() (*ErrorResponse, bool) + func (cw CreativeWork) AsIdentifiable() (*Identifiable, bool) + func (cw CreativeWork) AsImageObject() (*ImageObject, bool) + func (cw CreativeWork) AsImages() (*Images, bool) + func (cw CreativeWork) AsMediaObject() (*MediaObject, bool) + func (cw CreativeWork) AsResponse() (*Response, bool) + func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool) + func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (cw CreativeWork) AsThing() (*Thing, bool) + func (cw CreativeWork) AsWebPage() (*WebPage, bool) + func (cw CreativeWork) MarshalJSON() ([]byte, error) + type CustomInstanceClient struct + func NewCustomInstanceClient() CustomInstanceClient + func (client CustomInstanceClient) ImageSearch(ctx context.Context, customConfig string, query string, acceptLanguage string, ...) (result Images, err error) + func (client CustomInstanceClient) ImageSearchPreparer(ctx context.Context, customConfig string, query string, acceptLanguage string, ...) (*http.Request, error) + func (client CustomInstanceClient) ImageSearchResponder(resp *http.Response) (result Images, err error) + func (client CustomInstanceClient) ImageSearchSender(req *http.Request) (*http.Response, error) + type Error struct + Code ErrorCode + Message *string + MoreDetails *string + Parameter *string + SubCode ErrorSubCode + Value *string + type ErrorCode string + const InsufficientAuthorization + const InvalidAuthorization + const InvalidRequest + const None + const RateLimitExceeded + const ServerError + func PossibleErrorCodeValues() []ErrorCode + type ErrorResponse struct + Errors *[]Error + ID *string + ReadLink *string + Type Type + WebSearchURL *string + func (er ErrorResponse) AsAnswer() (*Answer, bool) + func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool) + func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (er ErrorResponse) AsBasicMediaObject() (BasicMediaObject, bool) + func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool) + func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, bool) + func (er ErrorResponse) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (er ErrorResponse) AsBasicThing() (BasicThing, bool) + func (er ErrorResponse) AsCreativeWork() (*CreativeWork, bool) + func (er ErrorResponse) AsErrorResponse() (*ErrorResponse, bool) + func (er ErrorResponse) AsIdentifiable() (*Identifiable, bool) + func (er ErrorResponse) AsImageObject() (*ImageObject, bool) + func (er ErrorResponse) AsImages() (*Images, bool) + func (er ErrorResponse) AsMediaObject() (*MediaObject, bool) + func (er ErrorResponse) AsResponse() (*Response, bool) + func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool) + func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (er ErrorResponse) AsThing() (*Thing, bool) + func (er ErrorResponse) AsWebPage() (*WebPage, bool) + func (er ErrorResponse) MarshalJSON() ([]byte, error) + type ErrorSubCode string + const AuthorizationDisabled + const AuthorizationExpired + const AuthorizationMissing + const AuthorizationRedundancy + const Blocked + const HTTPNotAllowed + const NotImplemented + const ParameterInvalidValue + const ParameterMissing + const ResourceError + const UnexpectedError + func PossibleErrorSubCodeValues() []ErrorSubCode + type Freshness string + const Day + const Month + const Week + func PossibleFreshnessValues() []Freshness + type Identifiable struct + ID *string + Type Type + func (i Identifiable) AsAnswer() (*Answer, bool) + func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool) + func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (i Identifiable) AsBasicMediaObject() (BasicMediaObject, bool) + func (i Identifiable) AsBasicResponse() (BasicResponse, bool) + func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, bool) + func (i Identifiable) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (i Identifiable) AsBasicThing() (BasicThing, bool) + func (i Identifiable) AsCreativeWork() (*CreativeWork, bool) + func (i Identifiable) AsErrorResponse() (*ErrorResponse, bool) + func (i Identifiable) AsIdentifiable() (*Identifiable, bool) + func (i Identifiable) AsImageObject() (*ImageObject, bool) + func (i Identifiable) AsImages() (*Images, bool) + func (i Identifiable) AsMediaObject() (*MediaObject, bool) + func (i Identifiable) AsResponse() (*Response, bool) + func (i Identifiable) AsResponseBase() (*ResponseBase, bool) + func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (i Identifiable) AsThing() (*Thing, bool) + func (i Identifiable) AsWebPage() (*WebPage, bool) + func (i Identifiable) MarshalJSON() ([]byte, error) + type ImageAspect string + const All + const Square + const Tall + const Wide + func PossibleImageAspectValues() []ImageAspect + type ImageColor string + const Black + const Blue + const Brown + const ColorOnly + const Gray + const Green + const Monochrome + const Orange + const Pink + const Purple + const Red + const Teal + const White + const Yellow + func PossibleImageColorValues() []ImageColor + type ImageContent string + const Face + const Portrait + func PossibleImageContentValues() []ImageContent + type ImageLicense string + const ImageLicenseAll + const ImageLicenseAny + const ImageLicenseModify + const ImageLicenseModifyCommercially + const ImageLicensePublic + const ImageLicenseShare + const ImageLicenseShareCommercially + func PossibleImageLicenseValues() []ImageLicense + type ImageObject struct + AccentColor *string + AlternateName *string + BingID *string + ContentSize *string + ContentURL *string + Description *string + EncodingFormat *string + Height *int32 + HostPageDisplayURL *string + HostPageURL *string + ID *string + Image *ImageObject + ImageID *string + ImageInsightsToken *string + Name *string + Provider *[]BasicThing + ReadLink *string + Text *string + Thumbnail *ImageObject + ThumbnailURL *string + Type Type + URL *string + VisualWords *string + WebSearchURL *string + Width *int32 + func (ioVar *ImageObject) UnmarshalJSON(body []byte) error + func (ioVar ImageObject) AsAnswer() (*Answer, bool) + func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool) + func (ioVar ImageObject) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (ioVar ImageObject) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (ioVar ImageObject) AsBasicMediaObject() (BasicMediaObject, bool) + func (ioVar ImageObject) AsBasicResponse() (BasicResponse, bool) + func (ioVar ImageObject) AsBasicResponseBase() (BasicResponseBase, bool) + func (ioVar ImageObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (ioVar ImageObject) AsBasicThing() (BasicThing, bool) + func (ioVar ImageObject) AsCreativeWork() (*CreativeWork, bool) + func (ioVar ImageObject) AsErrorResponse() (*ErrorResponse, bool) + func (ioVar ImageObject) AsIdentifiable() (*Identifiable, bool) + func (ioVar ImageObject) AsImageObject() (*ImageObject, bool) + func (ioVar ImageObject) AsImages() (*Images, bool) + func (ioVar ImageObject) AsMediaObject() (*MediaObject, bool) + func (ioVar ImageObject) AsResponse() (*Response, bool) + func (ioVar ImageObject) AsResponseBase() (*ResponseBase, bool) + func (ioVar ImageObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (ioVar ImageObject) AsThing() (*Thing, bool) + func (ioVar ImageObject) AsWebPage() (*WebPage, bool) + func (ioVar ImageObject) MarshalJSON() ([]byte, error) + type ImageSize string + const ImageSizeAll + const ImageSizeLarge + const ImageSizeMedium + const ImageSizeSmall + const ImageSizeWallpaper + func PossibleImageSizeValues() []ImageSize + type ImageType string + const AnimatedGif + const Clipart + const Line + const Photo + const Shopping + const Transparent + func PossibleImageTypeValues() []ImageType + type Images struct + ID *string + NextOffset *int32 + ReadLink *string + TotalEstimatedMatches *int64 + Type Type + Value *[]ImageObject + WebSearchURL *string + func (i Images) AsAnswer() (*Answer, bool) + func (i Images) AsBasicAnswer() (BasicAnswer, bool) + func (i Images) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (i Images) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (i Images) AsBasicMediaObject() (BasicMediaObject, bool) + func (i Images) AsBasicResponse() (BasicResponse, bool) + func (i Images) AsBasicResponseBase() (BasicResponseBase, bool) + func (i Images) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (i Images) AsBasicThing() (BasicThing, bool) + func (i Images) AsCreativeWork() (*CreativeWork, bool) + func (i Images) AsErrorResponse() (*ErrorResponse, bool) + func (i Images) AsIdentifiable() (*Identifiable, bool) + func (i Images) AsImageObject() (*ImageObject, bool) + func (i Images) AsImages() (*Images, bool) + func (i Images) AsMediaObject() (*MediaObject, bool) + func (i Images) AsResponse() (*Response, bool) + func (i Images) AsResponseBase() (*ResponseBase, bool) + func (i Images) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (i Images) AsThing() (*Thing, bool) + func (i Images) AsWebPage() (*WebPage, bool) + func (i Images) MarshalJSON() ([]byte, error) + type MediaObject struct + AlternateName *string + BingID *string + ContentSize *string + ContentURL *string + Description *string + EncodingFormat *string + Height *int32 + HostPageDisplayURL *string + HostPageURL *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ReadLink *string + Text *string + ThumbnailURL *string + Type Type + URL *string + WebSearchURL *string + Width *int32 + func (mo *MediaObject) UnmarshalJSON(body []byte) error + func (mo MediaObject) AsAnswer() (*Answer, bool) + func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool) + func (mo MediaObject) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (mo MediaObject) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (mo MediaObject) AsBasicMediaObject() (BasicMediaObject, bool) + func (mo MediaObject) AsBasicResponse() (BasicResponse, bool) + func (mo MediaObject) AsBasicResponseBase() (BasicResponseBase, bool) + func (mo MediaObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (mo MediaObject) AsBasicThing() (BasicThing, bool) + func (mo MediaObject) AsCreativeWork() (*CreativeWork, bool) + func (mo MediaObject) AsErrorResponse() (*ErrorResponse, bool) + func (mo MediaObject) AsIdentifiable() (*Identifiable, bool) + func (mo MediaObject) AsImageObject() (*ImageObject, bool) + func (mo MediaObject) AsImages() (*Images, bool) + func (mo MediaObject) AsMediaObject() (*MediaObject, bool) + func (mo MediaObject) AsResponse() (*Response, bool) + func (mo MediaObject) AsResponseBase() (*ResponseBase, bool) + func (mo MediaObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (mo MediaObject) AsThing() (*Thing, bool) + func (mo MediaObject) AsWebPage() (*WebPage, bool) + func (mo MediaObject) MarshalJSON() ([]byte, error) + type Query struct + DisplayText *string + SearchLink *string + Text *string + Thumbnail *ImageObject + WebSearchURL *string + type Response struct + ID *string + ReadLink *string + Type Type + WebSearchURL *string + func (r Response) AsAnswer() (*Answer, bool) + func (r Response) AsBasicAnswer() (BasicAnswer, bool) + func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (r Response) AsBasicMediaObject() (BasicMediaObject, bool) + func (r Response) AsBasicResponse() (BasicResponse, bool) + func (r Response) AsBasicResponseBase() (BasicResponseBase, bool) + func (r Response) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (r Response) AsBasicThing() (BasicThing, bool) + func (r Response) AsCreativeWork() (*CreativeWork, bool) + func (r Response) AsErrorResponse() (*ErrorResponse, bool) + func (r Response) AsIdentifiable() (*Identifiable, bool) + func (r Response) AsImageObject() (*ImageObject, bool) + func (r Response) AsImages() (*Images, bool) + func (r Response) AsMediaObject() (*MediaObject, bool) + func (r Response) AsResponse() (*Response, bool) + func (r Response) AsResponseBase() (*ResponseBase, bool) + func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (r Response) AsThing() (*Thing, bool) + func (r Response) AsWebPage() (*WebPage, bool) + func (r Response) MarshalJSON() ([]byte, error) + type ResponseBase struct + Type Type + func (rb ResponseBase) AsAnswer() (*Answer, bool) + func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool) + func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (rb ResponseBase) AsBasicMediaObject() (BasicMediaObject, bool) + func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool) + func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, bool) + func (rb ResponseBase) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (rb ResponseBase) AsBasicThing() (BasicThing, bool) + func (rb ResponseBase) AsCreativeWork() (*CreativeWork, bool) + func (rb ResponseBase) AsErrorResponse() (*ErrorResponse, bool) + func (rb ResponseBase) AsIdentifiable() (*Identifiable, bool) + func (rb ResponseBase) AsImageObject() (*ImageObject, bool) + func (rb ResponseBase) AsImages() (*Images, bool) + func (rb ResponseBase) AsMediaObject() (*MediaObject, bool) + func (rb ResponseBase) AsResponse() (*Response, bool) + func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool) + func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (rb ResponseBase) AsThing() (*Thing, bool) + func (rb ResponseBase) AsWebPage() (*WebPage, bool) + func (rb ResponseBase) MarshalJSON() ([]byte, error) + type SafeSearch string + const Moderate + const Off + const Strict + func PossibleSafeSearchValues() []SafeSearch + type SearchResultsAnswer struct + ID *string + ReadLink *string + TotalEstimatedMatches *int64 + Type Type + WebSearchURL *string + func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool) + func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool) + func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (sra SearchResultsAnswer) AsBasicMediaObject() (BasicMediaObject, bool) + func (sra SearchResultsAnswer) AsBasicResponse() (BasicResponse, bool) + func (sra SearchResultsAnswer) AsBasicResponseBase() (BasicResponseBase, bool) + func (sra SearchResultsAnswer) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (sra SearchResultsAnswer) AsBasicThing() (BasicThing, bool) + func (sra SearchResultsAnswer) AsCreativeWork() (*CreativeWork, bool) + func (sra SearchResultsAnswer) AsErrorResponse() (*ErrorResponse, bool) + func (sra SearchResultsAnswer) AsIdentifiable() (*Identifiable, bool) + func (sra SearchResultsAnswer) AsImageObject() (*ImageObject, bool) + func (sra SearchResultsAnswer) AsImages() (*Images, bool) + func (sra SearchResultsAnswer) AsMediaObject() (*MediaObject, bool) + func (sra SearchResultsAnswer) AsResponse() (*Response, bool) + func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool) + func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (sra SearchResultsAnswer) AsThing() (*Thing, bool) + func (sra SearchResultsAnswer) AsWebPage() (*WebPage, bool) + func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error) + type Thing struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + ReadLink *string + Type Type + URL *string + WebSearchURL *string + func (t Thing) AsAnswer() (*Answer, bool) + func (t Thing) AsBasicAnswer() (BasicAnswer, bool) + func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (t Thing) AsBasicMediaObject() (BasicMediaObject, bool) + func (t Thing) AsBasicResponse() (BasicResponse, bool) + func (t Thing) AsBasicResponseBase() (BasicResponseBase, bool) + func (t Thing) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (t Thing) AsBasicThing() (BasicThing, bool) + func (t Thing) AsCreativeWork() (*CreativeWork, bool) + func (t Thing) AsErrorResponse() (*ErrorResponse, bool) + func (t Thing) AsIdentifiable() (*Identifiable, bool) + func (t Thing) AsImageObject() (*ImageObject, bool) + func (t Thing) AsImages() (*Images, bool) + func (t Thing) AsMediaObject() (*MediaObject, bool) + func (t Thing) AsResponse() (*Response, bool) + func (t Thing) AsResponseBase() (*ResponseBase, bool) + func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (t Thing) AsThing() (*Thing, bool) + func (t Thing) AsWebPage() (*WebPage, bool) + func (t Thing) MarshalJSON() ([]byte, error) + type Type string + const TypeAnswer + const TypeCreativeWork + const TypeErrorResponse + const TypeIdentifiable + const TypeImageObject + const TypeImages + const TypeMediaObject + const TypeResponse + const TypeResponseBase + const TypeSearchResultsAnswer + const TypeThing + const TypeWebPage + func PossibleTypeValues() []Type + type WebPage struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ReadLink *string + Text *string + ThumbnailURL *string + Type Type + URL *string + WebSearchURL *string + func (wp *WebPage) UnmarshalJSON(body []byte) error + func (wp WebPage) AsAnswer() (*Answer, bool) + func (wp WebPage) AsBasicAnswer() (BasicAnswer, bool) + func (wp WebPage) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (wp WebPage) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (wp WebPage) AsBasicMediaObject() (BasicMediaObject, bool) + func (wp WebPage) AsBasicResponse() (BasicResponse, bool) + func (wp WebPage) AsBasicResponseBase() (BasicResponseBase, bool) + func (wp WebPage) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (wp WebPage) AsBasicThing() (BasicThing, bool) + func (wp WebPage) AsCreativeWork() (*CreativeWork, bool) + func (wp WebPage) AsErrorResponse() (*ErrorResponse, bool) + func (wp WebPage) AsIdentifiable() (*Identifiable, bool) + func (wp WebPage) AsImageObject() (*ImageObject, bool) + func (wp WebPage) AsImages() (*Images, bool) + func (wp WebPage) AsMediaObject() (*MediaObject, bool) + func (wp WebPage) AsResponse() (*Response, bool) + func (wp WebPage) AsResponseBase() (*ResponseBase, bool) + func (wp WebPage) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (wp WebPage) AsThing() (*Thing, bool) + func (wp WebPage) AsWebPage() (*WebPage, bool) + func (wp WebPage) MarshalJSON() ([]byte, error) Other modules containing this package gopkg.in/azure/azure-sdk-for-go.v17 gopkg.in/azure/azure-sdk-for-go.v18 gopkg.in/azure/azure-sdk-for-go.v19 gopkg.in/azure/azure-sdk-for-go.v20 gopkg.in/azure/azure-sdk-for-go.v21 gopkg.in/azure/azure-sdk-for-go.v22 gopkg.in/azure/azure-sdk-for-go.v23 gopkg.in/azure/azure-sdk-for-go.v25 gopkg.in/azure/azure-sdk-for-go.v26 gopkg.in/azure/azure-sdk-for-go.v27 gopkg.in/azure/azure-sdk-for-go.v28 gopkg.in/azure/azure-sdk-for-go.v29 gopkg.in/azure/azure-sdk-for-go.v30 gopkg.in/azure/azure-sdk-for-go.v31 gopkg.in/azure/azure-sdk-for-go.v32 gopkg.in/azure/azure-sdk-for-go.v33 gopkg.in/azure/azure-sdk-for-go.v34 gopkg.in/azure/azure-sdk-for-go.v35 gopkg.in/azure/azure-sdk-for-go.v36 gopkg.in/azure/azure-sdk-for-go.v37 gopkg.in/azure/azure-sdk-for-go.v38 gopkg.in/azure/azure-sdk-for-go.v39 gopkg.in/azure/azure-sdk-for-go.v40 gopkg.in/azure/azure-sdk-for-go.v41 gopkg.in/azure/azure-sdk-for-go.v42 gopkg.in/azure/azure-sdk-for-go.v43 gopkg.in/azure/azure-sdk-for-go.v44 gopkg.in/azure/azure-sdk-for-go.v45 gopkg.in/azure/azure-sdk-for-go.v46 gopkg.in/azure/azure-sdk-for-go.v47 gopkg.in/azure/azure-sdk-for-go.v48 gopkg.in/azure/azure-sdk-for-go.v49