Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("word not found")
ErrNotFound is returned when word is not found
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements integration with DictionaryAPI docs: https://dictionaryapi.dev/
type Definition ¶
type Definition struct { Definition string `json:"definition"` Example string `json:"example"` Synonyms []string `json:"synonyms"` Antonyms []string `json:"antonyms"` }
Definition holds information for a definition
type Meaning ¶
type Meaning struct { PartOfSpeech string `json:"partOfSpeech"` Definitions []Definition `json:"definitions"` }
Meaning holds information for a meaning
Click to show internal directories.
Click to hide internal directories.