Versions in this module Expand all Collapse all v28 v28.1.0 Apr 29, 2019 v28.0.0 Apr 26, 2019 Changes in this version + const DefaultEndpoint + func UserAgent() string + func Version() string + type Action struct + About *[]BasicThing + AdaptiveCard *string + CommentCount *int32 + CopyrightHolder BasicThing + CopyrightYear *int32 + Creator BasicThing + Disclaimer *string + DiscussionURL *string + DisplayName *string + Genre *[]string + HeadLine *string + ID *string + ImmediateAction *[]BasicAction + IsAccessibleForFree *bool + IsFamilyFriendly *bool + IsTopAction *bool + MainEntity BasicThing + Mentions *[]BasicThing + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + Provider *[]BasicThing + ReadLink *string + Result *[]BasicThing + ServiceURL *string + Text *string + ThumbnailURL *string + Type TypeBasicResponseBase + URL *string + WebSearchURL *string + func (a *Action) UnmarshalJSON(body []byte) error + func (a Action) AsAction() (*Action, bool) + func (a Action) AsAnswer() (*Answer, bool) + func (a Action) AsBasicAction() (BasicAction, bool) + func (a Action) AsBasicAnswer() (BasicAnswer, bool) + func (a Action) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (a Action) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (a Action) AsBasicResponse() (BasicResponse, bool) + func (a Action) AsBasicResponseBase() (BasicResponseBase, bool) + func (a Action) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (a Action) AsBasicThing() (BasicThing, bool) + func (a Action) AsCreativeWork() (*CreativeWork, bool) + func (a Action) AsErrorResponse() (*ErrorResponse, bool) + func (a Action) AsIdentifiable() (*Identifiable, bool) + func (a Action) AsResponse() (*Response, bool) + func (a Action) AsResponseBase() (*ResponseBase, bool) + func (a Action) AsSearchAction() (*SearchAction, bool) + func (a Action) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (a Action) AsSuggestions() (*Suggestions, bool) + func (a Action) AsThing() (*Thing, bool) + func (a Action) MarshalJSON() ([]byte, error) + type Answer struct + AdaptiveCard *string + ID *string + ImmediateAction *[]BasicAction + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + ReadLink *string + Type TypeBasicResponseBase + WebSearchURL *string + func (a *Answer) UnmarshalJSON(body []byte) error + func (a Answer) AsAction() (*Action, bool) + func (a Answer) AsAnswer() (*Answer, bool) + func (a Answer) AsBasicAction() (BasicAction, bool) + func (a Answer) AsBasicAnswer() (BasicAnswer, bool) + func (a Answer) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (a Answer) AsResponseBase() (*ResponseBase, bool) + func (a Answer) AsSearchAction() (*SearchAction, bool) + func (a Answer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (a Answer) AsSuggestions() (*Suggestions, bool) + func (a Answer) AsThing() (*Thing, bool) + func (a Answer) MarshalJSON() ([]byte, error) + type BaseClient struct + Endpoint string + func New() BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + func (client BaseClient) AutoSuggest(ctx context.Context, query string, acceptLanguage string, pragma string, ...) (result Suggestions, err error) + func (client BaseClient) AutoSuggestPreparer(ctx context.Context, query string, acceptLanguage string, pragma string, ...) (*http.Request, error) + func (client BaseClient) AutoSuggestResponder(resp *http.Response) (result Suggestions, err error) + func (client BaseClient) AutoSuggestSender(req *http.Request) (*http.Response, error) + type BasicAction interface + AsAction func() (*Action, bool) + AsSearchAction func() (*SearchAction, bool) + type BasicAnswer interface + AsAnswer func() (*Answer, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsSuggestions func() (*Suggestions, bool) + type BasicCreativeWork interface + AsAction func() (*Action, bool) + AsBasicAction func() (BasicAction, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsSearchAction func() (*SearchAction, bool) + type BasicError interface + AsError func() (*Error, bool) + type BasicIdentifiable interface + AsAction func() (*Action, bool) + AsAnswer func() (*Answer, bool) + AsBasicAction func() (BasicAction, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, 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) + AsResponse func() (*Response, bool) + AsSearchAction func() (*SearchAction, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsSuggestions func() (*Suggestions, bool) + AsThing func() (*Thing, bool) + type BasicQueryContext interface + AsQueryContext func() (*QueryContext, bool) + type BasicResponse interface + AsAction func() (*Action, bool) + AsAnswer func() (*Answer, bool) + AsBasicAction func() (BasicAction, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicSearchResultsAnswer func() (BasicSearchResultsAnswer, bool) + AsBasicThing func() (BasicThing, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsResponse func() (*Response, bool) + AsSearchAction func() (*SearchAction, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsSuggestions func() (*Suggestions, bool) + AsThing func() (*Thing, bool) + type BasicResponseBase interface + AsAction func() (*Action, bool) + AsAnswer func() (*Answer, bool) + AsBasicAction func() (BasicAction, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsBasicIdentifiable func() (BasicIdentifiable, 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) + AsResponse func() (*Response, bool) + AsResponseBase func() (*ResponseBase, bool) + AsSearchAction func() (*SearchAction, bool) + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsSuggestions func() (*Suggestions, bool) + AsThing func() (*Thing, bool) + type BasicSearchResultsAnswer interface + AsSearchResultsAnswer func() (*SearchResultsAnswer, bool) + AsSuggestions func() (*Suggestions, bool) + type BasicSuggestionsSuggestionGroup interface + AsSuggestionsSuggestionGroup func() (*SuggestionsSuggestionGroup, bool) + type BasicThing interface + AsAction func() (*Action, bool) + AsBasicAction func() (BasicAction, bool) + AsBasicCreativeWork func() (BasicCreativeWork, bool) + AsCreativeWork func() (*CreativeWork, bool) + AsSearchAction func() (*SearchAction, bool) + AsThing func() (*Thing, bool) + type CreativeWork struct + About *[]BasicThing + AdaptiveCard *string + CommentCount *int32 + CopyrightHolder BasicThing + CopyrightYear *int32 + Creator BasicThing + Disclaimer *string + DiscussionURL *string + Genre *[]string + HeadLine *string + ID *string + ImmediateAction *[]BasicAction + IsAccessibleForFree *bool + IsFamilyFriendly *bool + MainEntity BasicThing + Mentions *[]BasicThing + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + Provider *[]BasicThing + ReadLink *string + Text *string + ThumbnailURL *string + Type TypeBasicResponseBase + URL *string + WebSearchURL *string + func (cw *CreativeWork) UnmarshalJSON(body []byte) error + func (cw CreativeWork) AsAction() (*Action, bool) + func (cw CreativeWork) AsAnswer() (*Answer, bool) + func (cw CreativeWork) AsBasicAction() (BasicAction, bool) + func (cw CreativeWork) AsBasicAnswer() (BasicAnswer, bool) + func (cw CreativeWork) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (cw CreativeWork) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (cw CreativeWork) AsResponseBase() (*ResponseBase, bool) + func (cw CreativeWork) AsSearchAction() (*SearchAction, bool) + func (cw CreativeWork) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (cw CreativeWork) AsSuggestions() (*Suggestions, bool) + func (cw CreativeWork) AsThing() (*Thing, bool) + func (cw CreativeWork) MarshalJSON() ([]byte, error) + type Error struct + Code ErrorCode + Message *string + MoreDetails *string + Parameter *string + Type TypeBasicError + Value *string + func (e Error) AsBasicError() (BasicError, bool) + func (e Error) AsError() (*Error, bool) + 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 + AdaptiveCard *string + Errors *[]BasicError + ID *string + ImmediateAction *[]BasicAction + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + ReadLink *string + Type TypeBasicResponseBase + WebSearchURL *string + func (er *ErrorResponse) UnmarshalJSON(body []byte) error + func (er ErrorResponse) AsAction() (*Action, bool) + func (er ErrorResponse) AsAnswer() (*Answer, bool) + func (er ErrorResponse) AsBasicAction() (BasicAction, bool) + func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool) + func (er ErrorResponse) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (er ErrorResponse) AsResponseBase() (*ResponseBase, bool) + func (er ErrorResponse) AsSearchAction() (*SearchAction, bool) + func (er ErrorResponse) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (er ErrorResponse) AsSuggestions() (*Suggestions, bool) + func (er ErrorResponse) AsThing() (*Thing, bool) + func (er ErrorResponse) MarshalJSON() ([]byte, error) + type Identifiable struct + ID *string + Type TypeBasicResponseBase + func (i Identifiable) AsAction() (*Action, bool) + func (i Identifiable) AsAnswer() (*Answer, bool) + func (i Identifiable) AsBasicAction() (BasicAction, bool) + func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool) + func (i Identifiable) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (i Identifiable) AsResponseBase() (*ResponseBase, bool) + func (i Identifiable) AsSearchAction() (*SearchAction, bool) + func (i Identifiable) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (i Identifiable) AsSuggestions() (*Suggestions, bool) + func (i Identifiable) AsThing() (*Thing, bool) + func (i Identifiable) MarshalJSON() ([]byte, error) + type QueryContext struct + AdultIntent *bool + AlterationOverrideQuery *string + AlteredQuery *string + AskUserForLocation *bool + IsTransactional *bool + OriginalQuery *string + Type TypeBasicQueryContext + func (qc QueryContext) AsBasicQueryContext() (BasicQueryContext, bool) + func (qc QueryContext) AsQueryContext() (*QueryContext, bool) + func (qc QueryContext) MarshalJSON() ([]byte, error) + type Response struct + AdaptiveCard *string + ID *string + ImmediateAction *[]BasicAction + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + ReadLink *string + Type TypeBasicResponseBase + WebSearchURL *string + func (r *Response) UnmarshalJSON(body []byte) error + func (r Response) AsAction() (*Action, bool) + func (r Response) AsAnswer() (*Answer, bool) + func (r Response) AsBasicAction() (BasicAction, bool) + func (r Response) AsBasicAnswer() (BasicAnswer, bool) + func (r Response) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (r Response) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (r Response) AsResponseBase() (*ResponseBase, bool) + func (r Response) AsSearchAction() (*SearchAction, bool) + func (r Response) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (r Response) AsSuggestions() (*Suggestions, bool) + func (r Response) AsThing() (*Thing, bool) + func (r Response) MarshalJSON() ([]byte, error) + type ResponseBase struct + Type TypeBasicResponseBase + func (rb ResponseBase) AsAction() (*Action, bool) + func (rb ResponseBase) AsAnswer() (*Answer, bool) + func (rb ResponseBase) AsBasicAction() (BasicAction, bool) + func (rb ResponseBase) AsBasicAnswer() (BasicAnswer, bool) + func (rb ResponseBase) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (rb ResponseBase) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (rb ResponseBase) AsResponseBase() (*ResponseBase, bool) + func (rb ResponseBase) AsSearchAction() (*SearchAction, bool) + func (rb ResponseBase) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (rb ResponseBase) AsSuggestions() (*Suggestions, bool) + func (rb ResponseBase) AsThing() (*Thing, bool) + func (rb ResponseBase) MarshalJSON() ([]byte, error) + type ResponseFormat string + const JSON + const JSONLd + func PossibleResponseFormatValues() []ResponseFormat + type SafeSearch string + const Moderate + const Off + const Strict + func PossibleSafeSearchValues() []SafeSearch + type ScenarioType string + const Custom + const PersonalSearchDocuments + const PersonalSearchTags + const SearchHistory + const StoreApps + const Unknown + const Web + func PossibleScenarioTypeValues() []ScenarioType + type SearchAction struct + About *[]BasicThing + AdaptiveCard *string + CommentCount *int32 + CopyrightHolder BasicThing + CopyrightYear *int32 + Creator BasicThing + Disclaimer *string + DiscussionURL *string + DisplayName *string + DisplayText *string + Genre *[]string + HeadLine *string + ID *string + ImmediateAction *[]BasicAction + IsAccessibleForFree *bool + IsFamilyFriendly *bool + IsTopAction *bool + MainEntity BasicThing + Mentions *[]BasicThing + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + Provider *[]BasicThing + Query *string + ReadLink *string + Result *[]BasicThing + SearchKind SearchKind + ServiceURL *string + Text *string + ThumbnailURL *string + Type TypeBasicResponseBase + URL *string + WebSearchURL *string + func (sa *SearchAction) UnmarshalJSON(body []byte) error + func (sa SearchAction) AsAction() (*Action, bool) + func (sa SearchAction) AsAnswer() (*Answer, bool) + func (sa SearchAction) AsBasicAction() (BasicAction, bool) + func (sa SearchAction) AsBasicAnswer() (BasicAnswer, bool) + func (sa SearchAction) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (sa SearchAction) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (sa SearchAction) AsBasicResponse() (BasicResponse, bool) + func (sa SearchAction) AsBasicResponseBase() (BasicResponseBase, bool) + func (sa SearchAction) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (sa SearchAction) AsBasicThing() (BasicThing, bool) + func (sa SearchAction) AsCreativeWork() (*CreativeWork, bool) + func (sa SearchAction) AsErrorResponse() (*ErrorResponse, bool) + func (sa SearchAction) AsIdentifiable() (*Identifiable, bool) + func (sa SearchAction) AsResponse() (*Response, bool) + func (sa SearchAction) AsResponseBase() (*ResponseBase, bool) + func (sa SearchAction) AsSearchAction() (*SearchAction, bool) + func (sa SearchAction) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (sa SearchAction) AsSuggestions() (*Suggestions, bool) + func (sa SearchAction) AsThing() (*Thing, bool) + func (sa SearchAction) MarshalJSON() ([]byte, error) + type SearchKind string + const CustomSearch + const DocumentSearch + const HistorySearch + const LocationSearch + const TagSearch + const WebSearch + func PossibleSearchKindValues() []SearchKind + type SearchResultsAnswer struct + AdaptiveCard *string + ID *string + ImmediateAction *[]BasicAction + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + QueryContext BasicQueryContext + ReadLink *string + Type TypeBasicResponseBase + WebSearchURL *string + func (sra *SearchResultsAnswer) UnmarshalJSON(body []byte) error + func (sra SearchResultsAnswer) AsAction() (*Action, bool) + func (sra SearchResultsAnswer) AsAnswer() (*Answer, bool) + func (sra SearchResultsAnswer) AsBasicAction() (BasicAction, bool) + func (sra SearchResultsAnswer) AsBasicAnswer() (BasicAnswer, bool) + func (sra SearchResultsAnswer) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (sra SearchResultsAnswer) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (sra SearchResultsAnswer) AsResponseBase() (*ResponseBase, bool) + func (sra SearchResultsAnswer) AsSearchAction() (*SearchAction, bool) + func (sra SearchResultsAnswer) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (sra SearchResultsAnswer) AsSuggestions() (*Suggestions, bool) + func (sra SearchResultsAnswer) AsThing() (*Thing, bool) + func (sra SearchResultsAnswer) MarshalJSON() ([]byte, error) + type Suggestions struct + AdaptiveCard *string + ID *string + ImmediateAction *[]BasicAction + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + QueryContext BasicQueryContext + ReadLink *string + SuggestionGroups *[]BasicSuggestionsSuggestionGroup + Type TypeBasicResponseBase + WebSearchURL *string + func (s *Suggestions) UnmarshalJSON(body []byte) error + func (s Suggestions) AsAction() (*Action, bool) + func (s Suggestions) AsAnswer() (*Answer, bool) + func (s Suggestions) AsBasicAction() (BasicAction, bool) + func (s Suggestions) AsBasicAnswer() (BasicAnswer, bool) + func (s Suggestions) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (s Suggestions) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (s Suggestions) AsBasicResponse() (BasicResponse, bool) + func (s Suggestions) AsBasicResponseBase() (BasicResponseBase, bool) + func (s Suggestions) AsBasicSearchResultsAnswer() (BasicSearchResultsAnswer, bool) + func (s Suggestions) AsBasicThing() (BasicThing, bool) + func (s Suggestions) AsCreativeWork() (*CreativeWork, bool) + func (s Suggestions) AsErrorResponse() (*ErrorResponse, bool) + func (s Suggestions) AsIdentifiable() (*Identifiable, bool) + func (s Suggestions) AsResponse() (*Response, bool) + func (s Suggestions) AsResponseBase() (*ResponseBase, bool) + func (s Suggestions) AsSearchAction() (*SearchAction, bool) + func (s Suggestions) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (s Suggestions) AsSuggestions() (*Suggestions, bool) + func (s Suggestions) AsThing() (*Thing, bool) + func (s Suggestions) MarshalJSON() ([]byte, error) + type SuggestionsSuggestionGroup struct + Name ScenarioType + SearchSuggestions *[]SearchAction + Type Type + func (ssg SuggestionsSuggestionGroup) AsBasicSuggestionsSuggestionGroup() (BasicSuggestionsSuggestionGroup, bool) + func (ssg SuggestionsSuggestionGroup) AsSuggestionsSuggestionGroup() (*SuggestionsSuggestionGroup, bool) + func (ssg SuggestionsSuggestionGroup) MarshalJSON() ([]byte, error) + type Thing struct + AdaptiveCard *string + ID *string + ImmediateAction *[]BasicAction + PotentialAction *[]BasicAction + PreferredClickthroughURL *string + ReadLink *string + Type TypeBasicResponseBase + URL *string + WebSearchURL *string + func (t *Thing) UnmarshalJSON(body []byte) error + func (t Thing) AsAction() (*Action, bool) + func (t Thing) AsAnswer() (*Answer, bool) + func (t Thing) AsBasicAction() (BasicAction, bool) + func (t Thing) AsBasicAnswer() (BasicAnswer, bool) + func (t Thing) AsBasicCreativeWork() (BasicCreativeWork, bool) + func (t Thing) AsBasicIdentifiable() (BasicIdentifiable, 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) AsResponse() (*Response, bool) + func (t Thing) AsResponseBase() (*ResponseBase, bool) + func (t Thing) AsSearchAction() (*SearchAction, bool) + func (t Thing) AsSearchResultsAnswer() (*SearchResultsAnswer, bool) + func (t Thing) AsSuggestions() (*Suggestions, bool) + func (t Thing) AsThing() (*Thing, bool) + func (t Thing) MarshalJSON() ([]byte, error) + type Type string + const TypeSuggestionsSuggestionGroup + func PossibleTypeValues() []Type + type TypeBasicError string + const TypeError + func PossibleTypeBasicErrorValues() []TypeBasicError + type TypeBasicQueryContext string + const TypeQueryContext + func PossibleTypeBasicQueryContextValues() []TypeBasicQueryContext + type TypeBasicResponseBase string + const TypeAction + const TypeAnswer + const TypeCreativeWork + const TypeErrorResponse + const TypeIdentifiable + const TypeResponse + const TypeResponseBase + const TypeSearchAction + const TypeSearchResultsAnswer + const TypeSuggestions + const TypeThing + func PossibleTypeBasicResponseBaseValues() []TypeBasicResponseBase 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.v24 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.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