Versions in this module Expand all Collapse all v0 v0.1.0 Aug 1, 2026 Changes in this version + const Version + func IsResourceNotSetup(err error) bool + type APIError struct + Code string + Message string + func (e *APIError) Error() string + type CheckOptions struct + Format string + Language string + type Client struct + func New(baseURL string, opts ...Option) (*Client, error) + func (c *Client) Check(ctx context.Context, text string, opts *CheckOptions) (*DocumentResult, error) + func (c *Client) Correct(ctx context.Context, word string, opts *CheckOptions) (bool, error) + func (c *Client) Detect(ctx context.Context, text string) (*Detection, error) + func (c *Client) Health(ctx context.Context) (*Health, error) + func (c *Client) Languages(ctx context.Context) ([]string, error) + func (c *Client) Suggest(ctx context.Context, word string, opts *SuggestOptions) ([]Suggestion, error) + type Detection struct + Confidence float64 + Language string + type DocumentResult struct + Errors []WordError + File string + WordCount int + type Health struct + Ready map[string]bool + Status string + Timestamp string + type Languages struct + Cached []string + type Option func(*Client) + func WithHTTPClient(h *http.Client) Option + func WithLanguage(lang string) Option + func WithTimeout(d time.Duration) Option + type SuggestOptions struct + Language string + Max int + type Suggestion struct + Confidence float64 + Distance int + Source string + Word string + type WordError struct + Position *int + Suggestions []Suggestion + Word string