Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client bundles things needed to access the API
type LexicalCategory ¶
type LexicalEntry ¶
type LexicalEntry struct { Entries []Entry `json:"entries"` Language string `json:"language"` LexicalCategory LexicalCategory `json:"lexicalCategory"` Text string `json:"text"` }
func (*LexicalEntry) RenderLexicalCategory ¶
func (entry *LexicalEntry) RenderLexicalCategory() string
type Result ¶
type Result struct { ID string `json:"id"` Language string `json:"language"` LexicalEntries []LexicalEntry `json:"lexicalEntries"` Type string `json:"type"` Word string `json:"word"` }
type Sense ¶
type Sense struct { Antonyms []Onym `json:"antonyms"` Examples []Example `json:"examples"` ID string `json:"id"` Registers []LexicalCategory `json:"registers"` Subsenses []Subsense `json:"subsenses"` Synonyms []Onym `json:"synonyms"` }
func (Sense) HasAntonyms ¶
func (Sense) HasSynonyms ¶
func (*Sense) RenderAntonyms ¶
func (Sense) RenderExamples ¶
func (*Sense) RenderSynonyms ¶
func (Sense) RenderTags ¶
type Subsense ¶
type Subsense struct { ID string `json:"id"` Synonyms []Onym `json:"synonyms"` Registers []LexicalCategory `json:"registers"` Regions []LexicalCategory `json:"regions"` }
func (Subsense) HasSynonyms ¶
func (*Subsense) RenderSynonyms ¶
func (Subsense) RenderTags ¶
Click to show internal directories.
Click to hide internal directories.