Versions in this module Expand all Collapse all v0 v0.0.1 Nov 7, 2022 Changes in this version + const DefaultEndpoint + func UserAgent() string + func Version() string + type Answer struct + FollowUpQueries *[]Query + ID *string + Type Type + WebSearchURL *string + func (a Answer) AsAnswer() (*Answer, bool) + func (a Answer) AsArticle() (*Article, bool) + func (a Answer) AsBasicAnswer() (BasicAnswer, bool) + func (a Answer) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (a Answer) AsNews() (*News, bool) + func (a Answer) AsNewsArticle() (*NewsArticle, bool) + func (a Answer) AsNewsTopic() (*NewsTopic, bool) + func (a Answer) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (a Answer) AsVideoObject() (*VideoObject, bool) + func (a Answer) MarshalJSON() ([]byte, error) + type Article struct + AlternateName *string + BingID *string + DatePublished *string + Description *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ThumbnailURL *string + Type Type + URL *string + Video *VideoObject + WebSearchURL *string + WordCount *int32 + func (a *Article) UnmarshalJSON(body []byte) error + func (a Article) AsAnswer() (*Answer, bool) + func (a Article) AsArticle() (*Article, bool) + func (a Article) AsBasicAnswer() (BasicAnswer, bool) + func (a Article) AsBasicArticle() (BasicArticle, bool) + func (a Article) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (a Article) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (a Article) AsBasicMediaObject() (BasicMediaObject, bool) + func (a Article) AsBasicResponse() (BasicResponse, bool) + func (a Article) AsBasicResponseBase() (BasicResponseBase, bool) + func (a Article) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (a Article) AsBasicThing() (BasicThing, bool) + func (a Article) AsCreativeWork() (*CreativeWork, bool) + func (a Article) AsErrorResponse() (*ErrorResponse, bool) + func (a Article) AsIdentifiable() (*Identifiable, bool) + func (a Article) AsImageObject() (*ImageObject, bool) + func (a Article) AsMediaObject() (*MediaObject, bool) + func (a Article) AsNews() (*News, bool) + func (a Article) AsNewsArticle() (*NewsArticle, bool) + func (a Article) AsNewsTopic() (*NewsTopic, bool) + func (a Article) AsOrganization() (*Organization, bool) + func (a Article) AsResponse() (*Response, bool) + func (a Article) AsResponseBase() (*ResponseBase, bool) + func (a Article) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (a Article) AsThing() (*Thing, bool) + func (a Article) AsTrendingTopics() (*TrendingTopics, bool) + func (a Article) AsVideoObject() (*VideoObject, bool) + func (a Article) 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) + AsNews func() (*News, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsTrendingTopics func() (*TrendingTopics, bool) + type BasicArticle interface + AsArticle func() (*Article, bool) + AsNewsArticle func() (*NewsArticle, bool) + type BasicCreativeWork interface + AsArticle func() (*Article, bool) + AsBasicArticle func() (BasicArticle, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsNewsArticle func() (*NewsArticle, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicIdentifiable interface + AsAnswer func() (*Answer, bool) + AsArticle func() (*Article, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicArticle func() (BasicArticle, 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) + AsMediaObject func() (*MediaObject, bool) + AsNews func() (*News, bool) + AsNewsArticle func() (*NewsArticle, bool) + AsNewsTopic func() (*NewsTopic, bool) + AsOrganization func() (*Organization, bool) + AsResponse func() (*Response, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsTrendingTopics func() (*TrendingTopics, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicMediaObject interface + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicResponse interface + AsAnswer func() (*Answer, bool) + AsArticle func() (*Article, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicArticle func() (BasicArticle, 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) + AsMediaObject func() (*MediaObject, bool) + AsNews func() (*News, bool) + AsNewsArticle func() (*NewsArticle, bool) + AsNewsTopic func() (*NewsTopic, bool) + AsOrganization func() (*Organization, bool) + AsResponse func() (*Response, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsTrendingTopics func() (*TrendingTopics, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicResponseBase interface + AsAnswer func() (*Answer, bool) + AsArticle func() (*Article, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicArticle func() (BasicArticle, 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) + AsMediaObject func() (*MediaObject, bool) + AsNews func() (*News, bool) + AsNewsArticle func() (*NewsArticle, bool) + AsNewsTopic func() (*NewsTopic, bool) + AsOrganization func() (*Organization, bool) + AsResponse func() (*Response, bool) + AsResponseBase func() (*ResponseBase, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsThing func() (*Thing, bool) + AsTrendingTopics func() (*TrendingTopics, bool) + AsVideoObject func() (*VideoObject, bool) + type BasicSearchResultsAnswer interface + AsNews func() (*News, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + type BasicThing interface + AsArticle func() (*Article, bool) + AsBasicArticle func() (BasicArticle, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicMediaObject func() (BasicMediaObject, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsImageObject func() (*ImageObject, bool) + AsMediaObject func() (*MediaObject, bool) + AsNewsArticle func() (*NewsArticle, bool) + AsNewsTopic func() (*NewsTopic, bool) + AsOrganization func() (*Organization, bool) + AsThing func() (*Thing, bool) + AsVideoObject func() (*VideoObject, bool) + type CreativeWork struct + AlternateName *string + BingID *string + DatePublished *string + Description *string + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ThumbnailURL *string + Type Type + URL *string + Video *VideoObject + WebSearchURL *string + func (cw *CreativeWork) UnmarshalJSON(body []byte) error + func (cw CreativeWork) AsAnswer() (*Answer, bool) + func (cw CreativeWork) AsArticle() (*Article, bool) + func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool) + func (cw CreativeWork) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (cw CreativeWork) AsNews() (*News, bool) + func (cw CreativeWork) AsNewsArticle() (*NewsArticle, bool) + func (cw CreativeWork) AsNewsTopic() (*NewsTopic, bool) + func (cw CreativeWork) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (cw CreativeWork) AsVideoObject() (*VideoObject, bool) + func (cw CreativeWork) MarshalJSON() ([]byte, error) + type Error struct + Code ErrorCode + Message *string + MoreDetails *string + Parameter *string + SubCode ErrorSubCode + Value *string + func (e Error) MarshalJSON() ([]byte, error) + 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 + Type Type + WebSearchURL *string + func (er ErrorResponse) AsAnswer() (*Answer, bool) + func (er ErrorResponse) AsArticle() (*Article, bool) + func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool) + func (er ErrorResponse) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (er ErrorResponse) AsNews() (*News, bool) + func (er ErrorResponse) AsNewsArticle() (*NewsArticle, bool) + func (er ErrorResponse) AsNewsTopic() (*NewsTopic, bool) + func (er ErrorResponse) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (er ErrorResponse) AsVideoObject() (*VideoObject, 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) AsArticle() (*Article, bool) + func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool) + func (i Identifiable) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (i Identifiable) AsNews() (*News, bool) + func (i Identifiable) AsNewsArticle() (*NewsArticle, bool) + func (i Identifiable) AsNewsTopic() (*NewsTopic, bool) + func (i Identifiable) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (i Identifiable) AsVideoObject() (*VideoObject, bool) + func (i Identifiable) MarshalJSON() ([]byte, error) + type ImageObject struct + AlternateName *string + BingID *string + ContentURL *string + DatePublished *string + Description *string + Height *int32 + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + Thumbnail *ImageObject + ThumbnailURL *string + Type Type + URL *string + Video *VideoObject + WebSearchURL *string + Width *int32 + func (ioVar *ImageObject) UnmarshalJSON(body []byte) error + func (ioVar ImageObject) AsAnswer() (*Answer, bool) + func (ioVar ImageObject) AsArticle() (*Article, bool) + func (ioVar ImageObject) AsBasicAnswer() (BasicAnswer, bool) + func (ioVar ImageObject) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (ioVar ImageObject) AsNews() (*News, bool) + func (ioVar ImageObject) AsNewsArticle() (*NewsArticle, bool) + func (ioVar ImageObject) AsNewsTopic() (*NewsTopic, bool) + func (ioVar ImageObject) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (ioVar ImageObject) AsVideoObject() (*VideoObject, bool) + func (ioVar ImageObject) MarshalJSON() ([]byte, error) + type MediaObject struct + AlternateName *string + BingID *string + ContentURL *string + DatePublished *string + Description *string + Height *int32 + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ThumbnailURL *string + Type Type + URL *string + Video *VideoObject + WebSearchURL *string + Width *int32 + func (mo *MediaObject) UnmarshalJSON(body []byte) error + func (mo MediaObject) AsAnswer() (*Answer, bool) + func (mo MediaObject) AsArticle() (*Article, bool) + func (mo MediaObject) AsBasicAnswer() (BasicAnswer, bool) + func (mo MediaObject) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (mo MediaObject) AsNews() (*News, bool) + func (mo MediaObject) AsNewsArticle() (*NewsArticle, bool) + func (mo MediaObject) AsNewsTopic() (*NewsTopic, bool) + func (mo MediaObject) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (mo MediaObject) AsVideoObject() (*VideoObject, bool) + func (mo MediaObject) MarshalJSON() ([]byte, error) + type News struct + FollowUpQueries *[]Query + ID *string + Location *string + TotalEstimatedMatches *int64 + Type Type + Value *[]NewsArticle + WebSearchURL *string + func (n News) AsAnswer() (*Answer, bool) + func (n News) AsArticle() (*Article, bool) + func (n News) AsBasicAnswer() (BasicAnswer, bool) + func (n News) AsBasicArticle() (BasicArticle, bool) + func (n News) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (n News) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (n News) AsBasicMediaObject() (BasicMediaObject, bool) + func (n News) AsBasicResponse() (BasicResponse, bool) + func (n News) AsBasicResponseBase() (BasicResponseBase, bool) + func (n News) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (n News) AsBasicThing() (BasicThing, bool) + func (n News) AsCreativeWork() (*CreativeWork, bool) + func (n News) AsErrorResponse() (*ErrorResponse, bool) + func (n News) AsIdentifiable() (*Identifiable, bool) + func (n News) AsImageObject() (*ImageObject, bool) + func (n News) AsMediaObject() (*MediaObject, bool) + func (n News) AsNews() (*News, bool) + func (n News) AsNewsArticle() (*NewsArticle, bool) + func (n News) AsNewsTopic() (*NewsTopic, bool) + func (n News) AsOrganization() (*Organization, bool) + func (n News) AsResponse() (*Response, bool) + func (n News) AsResponseBase() (*ResponseBase, bool) + func (n News) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (n News) AsThing() (*Thing, bool) + func (n News) AsTrendingTopics() (*TrendingTopics, bool) + func (n News) AsVideoObject() (*VideoObject, bool) + func (n News) MarshalJSON() ([]byte, error) + type NewsArticle struct + AlternateName *string + BingID *string + Category *string + ClusteredArticles *[]NewsArticle + DatePublished *string + Description *string + Headline *bool + ID *string + Image *ImageObject + Name *string + Provider *[]BasicThing + ThumbnailURL *string + Type Type + URL *string + Video *VideoObject + WebSearchURL *string + WordCount *int32 + func (na *NewsArticle) UnmarshalJSON(body []byte) error + func (na NewsArticle) AsAnswer() (*Answer, bool) + func (na NewsArticle) AsArticle() (*Article, bool) + func (na NewsArticle) AsBasicAnswer() (BasicAnswer, bool) + func (na NewsArticle) AsBasicArticle() (BasicArticle, bool) + func (na NewsArticle) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (na NewsArticle) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (na NewsArticle) AsBasicMediaObject() (BasicMediaObject, bool) + func (na NewsArticle) AsBasicResponse() (BasicResponse, bool) + func (na NewsArticle) AsBasicResponseBase() (BasicResponseBase, bool) + func (na NewsArticle) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (na NewsArticle) AsBasicThing() (BasicThing, bool) + func (na NewsArticle) AsCreativeWork() (*CreativeWork, bool) + func (na NewsArticle) AsErrorResponse() (*ErrorResponse, bool) + func (na NewsArticle) AsIdentifiable() (*Identifiable, bool) + func (na NewsArticle) AsImageObject() (*ImageObject, bool) + func (na NewsArticle) AsMediaObject() (*MediaObject, bool) + func (na NewsArticle) AsNews() (*News, bool) + func (na NewsArticle) AsNewsArticle() (*NewsArticle, bool) + func (na NewsArticle) AsNewsTopic() (*NewsTopic, bool) + func (na NewsArticle) AsOrganization() (*Organization, bool) + func (na NewsArticle) AsResponse() (*Response, bool) + func (na NewsArticle) AsResponseBase() (*ResponseBase, bool) + func (na NewsArticle) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (na NewsArticle) AsThing() (*Thing, bool) + func (na NewsArticle) AsTrendingTopics() (*TrendingTopics, bool) + func (na NewsArticle) AsVideoObject() (*VideoObject, bool) + func (na NewsArticle) MarshalJSON() ([]byte, error) + type NewsClient struct + func NewNewsClient() NewsClient + func (client NewsClient) Category(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (result News, err error) + func (client NewsClient) CategoryPreparer(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (*http.Request, error) + func (client NewsClient) CategoryResponder(resp *http.Response) (result News, err error) + func (client NewsClient) CategorySender(req *http.Request) (*http.Response, error) + func (client NewsClient) Search(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (result News, err error) + func (client NewsClient) SearchPreparer(ctx context.Context, query string, acceptLanguage string, userAgent string, ...) (*http.Request, error) + func (client NewsClient) SearchResponder(resp *http.Response) (result News, err error) + func (client NewsClient) SearchSender(req *http.Request) (*http.Response, error) + func (client NewsClient) Trending(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (result TrendingTopics, err error) + func (client NewsClient) TrendingPreparer(ctx context.Context, acceptLanguage string, userAgent string, clientID string, ...) (*http.Request, error) + func (client NewsClient) TrendingResponder(resp *http.Response) (result TrendingTopics, err error) + func (client NewsClient) TrendingSender(req *http.Request) (*http.Response, error) + type NewsTopic struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + IsBreakingNews *bool + Name *string + NewsSearchURL *string + Query *Query + Type Type + URL *string + WebSearchURL *string + func (nt NewsTopic) AsAnswer() (*Answer, bool) + func (nt NewsTopic) AsArticle() (*Article, bool) + func (nt NewsTopic) AsBasicAnswer() (BasicAnswer, bool) + func (nt NewsTopic) AsBasicArticle() (BasicArticle, bool) + func (nt NewsTopic) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (nt NewsTopic) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (nt NewsTopic) AsBasicMediaObject() (BasicMediaObject, bool) + func (nt NewsTopic) AsBasicResponse() (BasicResponse, bool) + func (nt NewsTopic) AsBasicResponseBase() (BasicResponseBase, bool) + func (nt NewsTopic) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (nt NewsTopic) AsBasicThing() (BasicThing, bool) + func (nt NewsTopic) AsCreativeWork() (*CreativeWork, bool) + func (nt NewsTopic) AsErrorResponse() (*ErrorResponse, bool) + func (nt NewsTopic) AsIdentifiable() (*Identifiable, bool) + func (nt NewsTopic) AsImageObject() (*ImageObject, bool) + func (nt NewsTopic) AsMediaObject() (*MediaObject, bool) + func (nt NewsTopic) AsNews() (*News, bool) + func (nt NewsTopic) AsNewsArticle() (*NewsArticle, bool) + func (nt NewsTopic) AsNewsTopic() (*NewsTopic, bool) + func (nt NewsTopic) AsOrganization() (*Organization, bool) + func (nt NewsTopic) AsResponse() (*Response, bool) + func (nt NewsTopic) AsResponseBase() (*ResponseBase, bool) + func (nt NewsTopic) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (nt NewsTopic) AsThing() (*Thing, bool) + func (nt NewsTopic) AsTrendingTopics() (*TrendingTopics, bool) + func (nt NewsTopic) AsVideoObject() (*VideoObject, bool) + func (nt NewsTopic) MarshalJSON() ([]byte, error) + type Organization struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + Type Type + URL *string + WebSearchURL *string + func (o Organization) AsAnswer() (*Answer, bool) + func (o Organization) AsArticle() (*Article, bool) + func (o Organization) AsBasicAnswer() (BasicAnswer, bool) + func (o Organization) AsBasicArticle() (BasicArticle, bool) + func (o Organization) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (o Organization) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (o Organization) AsBasicMediaObject() (BasicMediaObject, bool) + func (o Organization) AsBasicResponse() (BasicResponse, bool) + func (o Organization) AsBasicResponseBase() (BasicResponseBase, bool) + func (o Organization) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (o Organization) AsBasicThing() (BasicThing, bool) + func (o Organization) AsCreativeWork() (*CreativeWork, bool) + func (o Organization) AsErrorResponse() (*ErrorResponse, bool) + func (o Organization) AsIdentifiable() (*Identifiable, bool) + func (o Organization) AsImageObject() (*ImageObject, bool) + func (o Organization) AsMediaObject() (*MediaObject, bool) + func (o Organization) AsNews() (*News, bool) + func (o Organization) AsNewsArticle() (*NewsArticle, bool) + func (o Organization) AsNewsTopic() (*NewsTopic, bool) + func (o Organization) AsOrganization() (*Organization, bool) + func (o Organization) AsResponse() (*Response, bool) + func (o Organization) AsResponseBase() (*ResponseBase, bool) + func (o Organization) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (o Organization) AsThing() (*Thing, bool) + func (o Organization) AsTrendingTopics() (*TrendingTopics, bool) + func (o Organization) AsVideoObject() (*VideoObject, bool) + func (o Organization) MarshalJSON() ([]byte, error) + type Query struct + DisplayText *string + SearchLink *string + Text *string + Thumbnail *ImageObject + WebSearchURL *string + func (q Query) MarshalJSON() ([]byte, error) + type Response struct + ID *string + Type Type + WebSearchURL *string + func (r Response) AsAnswer() (*Answer, bool) + func (r Response) AsArticle() (*Article, bool) + func (r Response) AsBasicAnswer() (BasicAnswer, bool) + func (r Response) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (r Response) AsNews() (*News, bool) + func (r Response) AsNewsArticle() (*NewsArticle, bool) + func (r Response) AsNewsTopic() (*NewsTopic, bool) + func (r Response) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (r Response) AsVideoObject() (*VideoObject, bool) + func (r Response) MarshalJSON() ([]byte, error) + type ResponseBase struct + Type Type + func (rb ResponseBase) AsAnswer() (*Answer, bool) + func (rb ResponseBase) AsArticle() (*Article, bool) + func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool) + func (rb ResponseBase) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (rb ResponseBase) AsNews() (*News, bool) + func (rb ResponseBase) AsNewsArticle() (*NewsArticle, bool) + func (rb ResponseBase) AsNewsTopic() (*NewsTopic, bool) + func (rb ResponseBase) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (rb ResponseBase) AsVideoObject() (*VideoObject, bool) + func (rb ResponseBase) MarshalJSON() ([]byte, error) + type SafeSearch string + const Moderate + const Off + const Strict + func PossibleSafeSearchValues() []SafeSearch + type SearchResultsAnswer struct + FollowUpQueries *[]Query + ID *string + TotalEstimatedMatches *int64 + Type Type + WebSearchURL *string + func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool) + func (sra SearchResultsAnswer) AsArticle() (*Article, bool) + func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool) + func (sra SearchResultsAnswer) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (sra SearchResultsAnswer) AsNews() (*News, bool) + func (sra SearchResultsAnswer) AsNewsArticle() (*NewsArticle, bool) + func (sra SearchResultsAnswer) AsNewsTopic() (*NewsTopic, bool) + func (sra SearchResultsAnswer) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (sra SearchResultsAnswer) AsVideoObject() (*VideoObject, bool) + func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error) + type TextFormat string + const HTML + const Raw + func PossibleTextFormatValues() []TextFormat + type Thing struct + AlternateName *string + BingID *string + Description *string + ID *string + Image *ImageObject + Name *string + Type Type + URL *string + WebSearchURL *string + func (t Thing) AsAnswer() (*Answer, bool) + func (t Thing) AsArticle() (*Article, bool) + func (t Thing) AsBasicAnswer() (BasicAnswer, bool) + func (t Thing) AsBasicArticle() (BasicArticle, 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) AsMediaObject() (*MediaObject, bool) + func (t Thing) AsNews() (*News, bool) + func (t Thing) AsNewsArticle() (*NewsArticle, bool) + func (t Thing) AsNewsTopic() (*NewsTopic, bool) + func (t Thing) AsOrganization() (*Organization, 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) AsTrendingTopics() (*TrendingTopics, bool) + func (t Thing) AsVideoObject() (*VideoObject, bool) + func (t Thing) MarshalJSON() ([]byte, error) + type TrendingTopics struct + FollowUpQueries *[]Query + ID *string + Type Type + Value *[]NewsTopic + WebSearchURL *string + func (tt TrendingTopics) AsAnswer() (*Answer, bool) + func (tt TrendingTopics) AsArticle() (*Article, bool) + func (tt TrendingTopics) AsBasicAnswer() (BasicAnswer, bool) + func (tt TrendingTopics) AsBasicArticle() (BasicArticle, bool) + func (tt TrendingTopics) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (tt TrendingTopics) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (tt TrendingTopics) AsBasicMediaObject() (BasicMediaObject, bool) + func (tt TrendingTopics) AsBasicResponse() (BasicResponse, bool) + func (tt TrendingTopics) AsBasicResponseBase() (BasicResponseBase, bool) + func (tt TrendingTopics) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (tt TrendingTopics) AsBasicThing() (BasicThing, bool) + func (tt TrendingTopics) AsCreativeWork() (*CreativeWork, bool) + func (tt TrendingTopics) AsErrorResponse() (*ErrorResponse, bool) + func (tt TrendingTopics) AsIdentifiable() (*Identifiable, bool) + func (tt TrendingTopics) AsImageObject() (*ImageObject, bool) + func (tt TrendingTopics) AsMediaObject() (*MediaObject, bool) + func (tt TrendingTopics) AsNews() (*News, bool) + func (tt TrendingTopics) AsNewsArticle() (*NewsArticle, bool) + func (tt TrendingTopics) AsNewsTopic() (*NewsTopic, bool) + func (tt TrendingTopics) AsOrganization() (*Organization, bool) + func (tt TrendingTopics) AsResponse() (*Response, bool) + func (tt TrendingTopics) AsResponseBase() (*ResponseBase, bool) + func (tt TrendingTopics) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (tt TrendingTopics) AsThing() (*Thing, bool) + func (tt TrendingTopics) AsTrendingTopics() (*TrendingTopics, bool) + func (tt TrendingTopics) AsVideoObject() (*VideoObject, bool) + func (tt TrendingTopics) MarshalJSON() ([]byte, error) + type Type string + const TypeAnswer + const TypeArticle + const TypeCreativeWork + const TypeErrorResponse + const TypeIdentifiable + const TypeImageObject + const TypeMediaObject + const TypeNews + const TypeNewsArticle + const TypeNewsTopic + const TypeOrganization + const TypeResponse + const TypeResponseBase + const TypeSearchResultsAnswer + const TypeThing + const TypeTrendingTopics + const TypeVideoObject + func PossibleTypeValues() []Type + type VideoObject struct + AllowHTTPSEmbed *bool + AllowMobileEmbed *bool + AlternateName *string + BingID *string + ContentURL *string + DatePublished *string + Description *string + EmbedHTML *string + Height *int32 + ID *string + Image *ImageObject + IsSuperfresh *bool + MotionThumbnailID *string + MotionThumbnailURL *string + Name *string + Provider *[]BasicThing + Thumbnail *ImageObject + ThumbnailURL *string + Type Type + URL *string + Video *VideoObject + VideoID *string + ViewCount *int32 + WebSearchURL *string + Width *int32 + func (vo *VideoObject) UnmarshalJSON(body []byte) error + func (vo VideoObject) AsAnswer() (*Answer, bool) + func (vo VideoObject) AsArticle() (*Article, bool) + func (vo VideoObject) AsBasicAnswer() (BasicAnswer, bool) + func (vo VideoObject) AsBasicArticle() (BasicArticle, bool) + func (vo VideoObject) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (vo VideoObject) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (vo VideoObject) AsBasicMediaObject() (BasicMediaObject, bool) + func (vo VideoObject) AsBasicResponse() (BasicResponse, bool) + func (vo VideoObject) AsBasicResponseBase() (BasicResponseBase, bool) + func (vo VideoObject) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (vo VideoObject) AsBasicThing() (BasicThing, bool) + func (vo VideoObject) AsCreativeWork() (*CreativeWork, bool) + func (vo VideoObject) AsErrorResponse() (*ErrorResponse, bool) + func (vo VideoObject) AsIdentifiable() (*Identifiable, bool) + func (vo VideoObject) AsImageObject() (*ImageObject, bool) + func (vo VideoObject) AsMediaObject() (*MediaObject, bool) + func (vo VideoObject) AsNews() (*News, bool) + func (vo VideoObject) AsNewsArticle() (*NewsArticle, bool) + func (vo VideoObject) AsNewsTopic() (*NewsTopic, bool) + func (vo VideoObject) AsOrganization() (*Organization, bool) + func (vo VideoObject) AsResponse() (*Response, bool) + func (vo VideoObject) AsResponseBase() (*ResponseBase, bool) + func (vo VideoObject) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (vo VideoObject) AsThing() (*Thing, bool) + func (vo VideoObject) AsTrendingTopics() (*TrendingTopics, bool) + func (vo VideoObject) AsVideoObject() (*VideoObject, bool) + func (vo VideoObject) MarshalJSON() ([]byte, error)