Documentation
¶
Overview ¶
Package mw is merriam webster api client package
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type Definition struct {
EWord string
Date string // date of first recorded use
Def []string // definition field
Type string
Synonymous []string
Extera string
}
Definition represents word definition with some description
type Entry ¶
type Entry struct {
XMLName xml.Name `xml:"entry"`
ID string `xml:"id,attr"`
Def []DT `xml:"def>dt"` // Defining Text
FL string `xml:"fl"` // Functional Label
Date string `xml:"def>date"`
Word string `xml:"ew"`
}
Entry represents merriam webster word definition section
type EntryList ¶
type EntryList struct {
XMLName xml.Name `xml:"entry_list"`
Version string `xml:"version,attr"`
Entries []Entry `xml:"entry"`
Suggestions []string `xml:"suggestion"`
}
EntryList represents list of entries.
type MerriamWebster ¶
type MerriamWebster struct {
// contains filtered or unexported fields
}
MerriamWebster contains information for create connection into merriam-webster
func New ¶
func New(key string, dictionary string) *MerriamWebster
New creates merriam-webster object with given key and dictionary name
type Word ¶
type Word struct {
Word string
Version string
Definitions []Definition
}
Word type contains word definations
Click to show internal directories.
Click to hide internal directories.