Versions in this module Expand all Collapse all v1 v1.0.1 Sep 13, 2022 v1.0.0 Sep 12, 2022 Changes in this version + const DefaultEndpoint + func UserAgent() string + func Version() string + type ActionType string + const Edit + const Load + func PossibleActionTypeValues() []ActionType + type Answer struct + ID *string + Type Type + func (a Answer) AsAnswer() (*Answer, bool) + func (a Answer) AsBasicAnswer() (BasicAnswer, bool) + func (a Answer) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (a Answer) AsBasicResponse() (BasicResponse, bool) + func (a Answer) AsBasicResponseBase() (BasicResponseBase, 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) AsSpellCheck() (*SpellCheck, bool) + func (a Answer) MarshalJSON() ([]byte, error) + type BaseClient struct + Endpoint string + func New() BaseClient + func NewWithoutDefaults(endpoint string) BaseClient + func (client BaseClient) SpellCheckerMethod(ctx context.Context, textParameter string, acceptLanguage string, ...) (result SpellCheck, err error) + func (client BaseClient) SpellCheckerMethodPreparer(ctx context.Context, textParameter string, acceptLanguage string, ...) (*http.Request, error) + func (client BaseClient) SpellCheckerMethodResponder(resp *http.Response) (result SpellCheck, err error) + func (client BaseClient) SpellCheckerMethodSender(req *http.Request) (*http.Response, error) + type BasicAnswer interface + AsAnswer func() (*Answer, bool) + AsSpellCheck func() (*SpellCheck, bool) + type BasicIdentifiable interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicResponse func() (BasicResponse, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsIdentifiable func() (*Identifiable, bool) + AsResponse func() (*Response, bool) + AsSpellCheck func() (*SpellCheck, bool) + type BasicResponse interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsResponse func() (*Response, bool) + AsSpellCheck func() (*SpellCheck, bool) + type BasicResponseBase interface + AsAnswer func() (*Answer, bool) + AsBasicAnswer func() (BasicAnswer, bool) + AsBasicIdentifiable func() (BasicIdentifiable, bool) + AsBasicResponse func() (BasicResponse, bool) + AsErrorResponse func() (*ErrorResponse, bool) + AsIdentifiable func() (*Identifiable, bool) + AsResponse func() (*Response, bool) + AsResponseBase func() (*ResponseBase, bool) + AsSpellCheck func() (*SpellCheck, bool) + 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 + func (er ErrorResponse) AsAnswer() (*Answer, bool) + func (er ErrorResponse) AsBasicAnswer() (BasicAnswer, bool) + func (er ErrorResponse) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (er ErrorResponse) AsBasicResponse() (BasicResponse, bool) + func (er ErrorResponse) AsBasicResponseBase() (BasicResponseBase, 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) AsSpellCheck() (*SpellCheck, 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 ErrorType string + const RepeatedToken + const UnknownToken + func PossibleErrorTypeValues() []ErrorType + type Identifiable struct + ID *string + Type Type + func (i Identifiable) AsAnswer() (*Answer, bool) + func (i Identifiable) AsBasicAnswer() (BasicAnswer, bool) + func (i Identifiable) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (i Identifiable) AsBasicResponse() (BasicResponse, bool) + func (i Identifiable) AsBasicResponseBase() (BasicResponseBase, 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) AsSpellCheck() (*SpellCheck, bool) + func (i Identifiable) MarshalJSON() ([]byte, error) + type Mode string + const Proof + const Spell + func PossibleModeValues() []Mode + type Response struct + ID *string + Type Type + func (r Response) AsAnswer() (*Answer, bool) + func (r Response) AsBasicAnswer() (BasicAnswer, bool) + func (r Response) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (r Response) AsBasicResponse() (BasicResponse, bool) + func (r Response) AsBasicResponseBase() (BasicResponseBase, 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) AsSpellCheck() (*SpellCheck, 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) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (rb ResponseBase) AsBasicResponse() (BasicResponse, bool) + func (rb ResponseBase) AsBasicResponseBase() (BasicResponseBase, 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) AsSpellCheck() (*SpellCheck, bool) + func (rb ResponseBase) MarshalJSON() ([]byte, error) + type SpellCheck struct + FlaggedTokens *[]SpellingFlaggedToken + ID *string + Type Type + func (sc SpellCheck) AsAnswer() (*Answer, bool) + func (sc SpellCheck) AsBasicAnswer() (BasicAnswer, bool) + func (sc SpellCheck) AsBasicIdentifiable() (BasicIdentifiable, bool) + func (sc SpellCheck) AsBasicResponse() (BasicResponse, bool) + func (sc SpellCheck) AsBasicResponseBase() (BasicResponseBase, bool) + func (sc SpellCheck) AsErrorResponse() (*ErrorResponse, bool) + func (sc SpellCheck) AsIdentifiable() (*Identifiable, bool) + func (sc SpellCheck) AsResponse() (*Response, bool) + func (sc SpellCheck) AsResponseBase() (*ResponseBase, bool) + func (sc SpellCheck) AsSpellCheck() (*SpellCheck, bool) + func (sc SpellCheck) MarshalJSON() ([]byte, error) + type SpellingFlaggedToken struct + Offset *int32 + PingURLSuffix *string + Suggestions *[]SpellingTokenSuggestion + Token *string + Type ErrorType + func (sft SpellingFlaggedToken) MarshalJSON() ([]byte, error) + type SpellingTokenSuggestion struct + PingURLSuffix *string + Score *float64 + Suggestion *string + func (sts SpellingTokenSuggestion) MarshalJSON() ([]byte, error) + type Type string + const TypeAnswer + const TypeErrorResponse + const TypeIdentifiable + const TypeResponse + const TypeResponseBase + const TypeSpellCheck + func PossibleTypeValues() []Type