Versions in this module Expand all Collapse all v0 v0.1.1 Jun 15, 2026 Changes in this version + const Host + type Domain struct + func (Domain) Info() kit.DomainInfo + func (Domain) Register(app *kit.App) v0.1.0 Jun 13, 2026 Changes in this version + const DefaultUserAgent + var ErrNotFound = errors.New("not found") + type Client struct + func NewClient(cfg Config) *Client + func (c *Client) Antonyms(ctx context.Context, lang, word string, limit int) ([]Synonym, error) + func (c *Client) Define(ctx context.Context, lang, word string, limit int) ([]Definition, error) + func (c *Client) Examples(ctx context.Context, lang, word string, limit int) ([]Example, error) + func (c *Client) Phonetics(ctx context.Context, lang, word string) ([]Phonetic, error) + func (c *Client) Synonyms(ctx context.Context, lang, word string, limit int) ([]Synonym, error) + type Config struct + BaseURL string + Rate time.Duration + Retries int + Timeout time.Duration + UserAgent string + func DefaultConfig() Config + type Definition struct + Definition string + Example string + PartOfSpeech string + Rank int + Synonyms string + Word string + type Example struct + Example string + Rank int + Word string + type Phonetic struct + Audio string + Text string + type Synonym struct + Rank int + URL string + Word string