Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client bundles things needed to access the API
type Entry ¶
type Entry struct { Etymologies []string `json:"etymologies"` HomographNumber *string `json:"homographNumber,omitempty"` Senses []Sense `json:"senses"` }
func (Entry) HasEtymology ¶
func (Entry) RenderEtymology ¶
func (e Entry) RenderEtymology() interface{}
type LexicalCategory ¶
type LexicalEntry ¶
type LexicalEntry struct { Entries []Entry `json:"entries"` Language *string `json:"language,omitempty"` LexicalCategory *LexicalCategory `json:"lexicalCategory,omitempty"` Pronunciations []Pronunciation `json:"pronunciations"` Text *string `json:"text,omitempty"` }
func (*LexicalEntry) RenderLexicalCategory ¶
func (entry *LexicalEntry) RenderLexicalCategory() string
type Pronunciation ¶
type Result ¶
type Result struct { ID *string `json:"id,omitempty"` Language *string `json:"language,omitempty"` LexicalEntries []LexicalEntry `json:"lexicalEntries"` Type *string `json:"type,omitempty"` Word *string `json:"word,omitempty"` }
type Sense ¶
type Sense struct { Definitions []string `json:"definitions"` Examples []Example `json:"examples"` ID *string `json:"id,omitempty"` ShortDefinitions []string `json:"shortDefinitions"` Subsenses []Subsense `json:"subsenses"` ThesaurusLinks []ThesaurusLink `json:"thesaurusLinks"` }
func (Sense) HasExamples ¶
func (Sense) RenderExamples ¶
type Subsense ¶
type Subsense struct { Definitions []string `json:"definitions"` Examples []Example `json:"examples"` ID *string `json:"id,omitempty"` Regions []LexicalCategory `json:"regions"` Registers []LexicalCategory `json:"registers"` ShortDefinitions []string `json:"shortDefinitions"` ThesaurusLinks []ThesaurusLink `json:"thesaurusLinks"` }
func (Subsense) HasExamples ¶
func (Subsense) RenderExamples ¶
func (Subsense) RenderTags ¶
type ThesaurusLink ¶
Click to show internal directories.
Click to hide internal directories.