Documentation ¶
Index ¶
- Constants
- Variables
- type AbbreviatedSense
- type Art
- type BindingSubstitute
- type Biography
- type CalledAlso
- type CalledAlsoTarget
- type CognateCrossReference
- type CognateCrossReferenceTarget
- type CollegiateResult
- type DefinedRunOn
- type DefiningText
- type DefiningTextItem
- type DefiningTextItemType
- type Definition
- type DividedSense
- type Etymology
- type EtymologyItem
- type EtymologyItemType
- type HeadwordInfo
- type Inflection
- type Metadata
- type Pronounciation
- type Quote
- type QuoteAttribution
- type RunIn
- type RunInItem
- type RunInItemType
- type RunInWrap
- type Sense
- type SenseSequence
- type SenseSequenceItem
- type SenseSequenceItemType
- type SequenceMapping
- type SequenceMappingItem
- type Sound
- type SupplementalInfo
- type SupplementalInfoItem
- type SupplementalInfoItemType
- type SynonymParagraph
- type SynonymParagraphText
- type SynonymParagraphTextItem
- type SynonymParagraphTextItemType
- type Table
- type UndefinedRunOn
- type UndefinedRunonText
- type UndefinedRunonTextItem
- type UndefinedRunonTextItemType
- type UsageNote
- type UsageNoteItem
- type UsageNoteItemType
- type UsageParagraphText
- type UsageParagraphTextItem
- type UsageParagraphTextItemType
- type UsageParagraphs
- type UsageSeeAlso
- type Variant
- type VerbalIllustration
- type WithArt
- type WithCognateCrossReferences
- type WithDefinedRunOns
- type WithDefiningText
- type WithDefinitions
- type WithDirectionalCrossReferences
- type WithDividedSense
- type WithEtymology
- type WithFirstKnownDate
- type WithFunctionalLabel
- type WithGeneralLabels
- type WithHeadwordInfo
- type WithHomograph
- type WithInflections
- type WithMetadata
- type WithParenthesizedSubjectStatusLabel
- type WithPronounciations
- type WithQuoteAttribution
- type WithQuotes
- type WithSenseSequence
- type WithSenseSpecificGrammaticalLabel
- type WithSenseSpecificInflectionPluralLabel
- type WithShortDefinitions
- type WithSubjectStatusLabels
- type WithSynonyms
- type WithTable
- type WithUndefinedRunOns
- type WithUndefinedRunonText
- type WithUsageNotes
- type WithUsages
- type WithVariants
- type WithVerbalIllustrations
Constants ¶
const ( EtymologyItemTypeUnknown = iota EtymologyItemTypeText EtymologyItemTypeSupplementalInfo )
Values for EtymologyElementType
const ( UndefinedRunonTextItemTypeUnknown = iota UndefinedRunonTextItemTypeVerbalIllustrations UndefinedRunonTextItemTypeUsageNotes )
Values for UndefinedRunonTextItemType
const ( SenseSequenceItemTypeUnknown = iota SenseSequenceItemTypeSense SenseSequenceItemTypeAbbreviatedSense SenseSequenceItemTypeBindingSubstitute SenseSequenceItemTypeSubSequence SenseSequenceItemTypeParenthesizedSequence )
Values for SenseSequenceItemType
const ( SupplementalInfoItemTypeUnknown = iota SupplementalInfoItemTypeText SupplementalInfoItemTypeRunIn SupplementalInfoItemTypeVerbalIllustration )
Values for SupplementalInfoItemType
Variables ¶
var ErrInvalidSenseSequence = errors.New("invalid sense sequence")
ErrInvalidSenseSequence is an error when the sense sequence is structured wrong
var ErrInvalidSequenceMapping = errors.New("invalid sequence mapping")
ErrInvalidSequenceMapping is an error used when the sequence mapping is improperly structured
Functions ¶
This section is empty.
Types ¶
type AbbreviatedSense ¶
type AbbreviatedSense Sense
AbbreviatedSense is a Sense without definition text
type BindingSubstitute ¶
type BindingSubstitute Sense
BindingSubstitute is a special, broad kind of sense
type Biography ¶
type CalledAlso ¶
type CalledAlso struct { Intro string `json:"intro,omitempty"` Targets []CalledAlsoTarget `json:"cats,omitempty"` }
type CalledAlsoTarget ¶
type CalledAlsoTarget struct { Text string `json:"cat,omitempty"` TargetID string `json:"catref,omitempty"` ParenthesizedNumber string `json:"pn,omitempty"` WithPronounciations WithParenthesizedSubjectStatusLabel }
CalledAlsoTarget https://dictionaryapi.com/products/json#sec-2.ca
type CognateCrossReference ¶
type CognateCrossReference struct { Label string `json:"cxl,omitempty"` Targets []CognateCrossReferenceTarget `json:"cxtis,omitempty"` }
CognateCrossReference https://dictionaryapi.com/products/json#sec-2.cxs
type CognateCrossReferenceTarget ¶
type CognateCrossReferenceTarget struct { Label string `json:"cxl,omitempty"` TargetID string `json:"cxr,omitempty"` HyperlinkText string `json:"cxt,omitempty"` SenseNumber string `json:"cxn,omitempty"` }
CognateCrossReferenceTarget https://dictionaryapi.com/products/json#sec-2.cxs
type CollegiateResult ¶
type CollegiateResult struct { WithMetadata WithHomograph WithHeadwordInfo WithFunctionalLabel WithGeneralLabels WithSubjectStatusLabels WithParenthesizedSubjectStatusLabel WithSenseSpecificInflectionPluralLabel // XXX: might not belong here? docs unclear WithSenseSpecificGrammaticalLabel // XXX: might not belong here? docs unclear WithInflections WithCognateCrossReferences WithDefinitions // misc WithDefinedRunOns WithUndefinedRunOns WithDirectionalCrossReferences WithUsages WithSynonyms WithQuotes WithTable WithEtymology WithFirstKnownDate WithArt WithVariants WithShortDefinitions }
CollegiateResult is a result from a search through the M-W Collegiate dictionary
type DefinedRunOn ¶
type DefinedRunOn struct { Phrase string `json:"drp,omitempty"` WithDefinitions WithEtymology WithGeneralLabels WithPronounciations WithParenthesizedSubjectStatusLabel WithSubjectStatusLabels WithVariants }
DefinedRunOn https://dictionaryapi.com/products/json#sec-2.dros
type DefiningText ¶
type DefiningText SequenceMapping
DefiningText https://dictionaryapi.com/products/json#sec-2.dt
func (DefiningText) Contents ¶
func (dt DefiningText) Contents() ([]DefiningTextItem, error)
Contents returns a copied slice of the contents in the DefiningText
type DefiningTextItem ¶
type DefiningTextItem struct { Type DefiningTextItemType Text *string Biography *Biography CalledAlso *CalledAlso RunIn *RunIn SupplementalInfo *SupplementalInfo WithUsageNotes WithVerbalIllustrations }
DefiningTextItem is an item in the DefiningText container. Type indicated which property is populated with data.
type DefiningTextItemType ¶
type DefiningTextItemType int
DefiningTextItemType is an enum type for the types of items in DefiningText
const ( DefiningTextItemTypeUnknown DefiningTextItemType = iota DefiningTextItemTypeText DefiningTextItemTypeBiography DefiningTextItemTypeCalledAlso DefiningTextItemTypeRunIn DefiningTextItemTypeSupplementalInfo DefiningTextItemTypeUsageNotes DefiningTextItemTypeVerbalIllustrations )
Values for DefiningTextItemType
func DefiningTextItemTypeFromString ¶
func DefiningTextItemTypeFromString(id string) DefiningTextItemType
DefiningTextItemTypeFromString returns a DefiningTextItemType from its string ID
func (DefiningTextItemType) String ¶
func (t DefiningTextItemType) String() string
type Definition ¶
type Definition struct { VerbDivider string `json:"vd,omitempty"` WithSenseSequence }
Definition https://dictionaryapi.com/products/json#sec-2.def
type DividedSense ¶
type DividedSense struct { Divider string `json:"sd,omitempty"` WithEtymology WithInflections WithGeneralLabels WithPronounciations WithSenseSpecificGrammaticalLabel WithSubjectStatusLabels WithDefiningText }
DividedSense https://dictionaryapi.com/products/json#sec-2.sdsense
type Etymology ¶
type Etymology SequenceMapping
Etymology https://dictionaryapi.com/products/json#sec-2.et
func (Etymology) Contents ¶
func (ety Etymology) Contents() ([]EtymologyItem, error)
Contents returns a copied slice of the contents in the Etymology
type EtymologyItem ¶
type EtymologyItem struct { Type EtymologyItemType Text *string SupplementalInfo *SupplementalInfo }
EtymologyItem is an item of the SI container
type EtymologyItemType ¶
type EtymologyItemType int
EtymologyItemType is an enum type for the types of items in Etymology
func EtymologyItemTypeFromString ¶
func EtymologyItemTypeFromString(id string) EtymologyItemType
EtymologyItemTypeFromString returns a EtymologyItemType from its string ID
func (EtymologyItemType) String ¶
func (t EtymologyItemType) String() string
type HeadwordInfo ¶
type HeadwordInfo struct { Headword string `json:"hw,omitempty"` WithPronounciations }
HeadwordInfo https://dictionaryapi.com/products/json#sec-2.hwi
type Inflection ¶
type Inflection struct { Spelled string `json:"if,omitempty"` Cutback string `json:"ifc,omitempty"` Label string `json:"il,omitempty"` WithPronounciations WithSenseSpecificInflectionPluralLabel }
Inflection https://dictionaryapi.com/products/json#sec-2.ins
type Metadata ¶
type Pronounciation ¶
type Pronounciation struct { MerriamWebsterFormat string `json:"mw,omitempty"` LabelBefore string `json:"l,omitempty"` LabelAfter string `json:"l2,omitempty"` Punctuation string `json:"pun,omitempty"` Sound *Sound `json:"sound,omitempty"` }
Pronounciation https://dictionaryapi.com/products/json#sec-2.prs
type Quote ¶
type Quote struct { Text string `json:"t,omitempty"` WithQuoteAttribution }
type QuoteAttribution ¶
type QuoteAttribution struct { Author string `json:"auth,omitempty"` Source string `json:"source,omitempty"` Date string `json:"aqdate,omitempty"` SubSource *struct { Source string `json:"source,omitempty"` Date string `json:"aqdate,omitempty"` } `json:"subsource,omitempty"` }
QuoteAttribution https://dictionaryapi.com/products/json#sec-2.aq
type RunIn ¶
type RunIn SequenceMapping
type RunInItem ¶
type RunInItem struct { Type RunInItemType Text *string RunInWrap *RunInWrap }
RunInItem is an item of the RunIn container
type RunInItemType ¶
type RunInItemType int
RunInItemType is an enum type for the types of items in RunIn
const ( RunInItemTypeUnknown RunInItemType = iota RunInItemTypeText RunInItemTypeRunInWrap )
Values for RuninItemType
func RunInItemTypeFromString ¶
func RunInItemTypeFromString(id string) RunInItemType
RunInItemTypeFromString returns a RunInItemType from its string ID
func (RunInItemType) String ¶
func (t RunInItemType) String() string
type RunInWrap ¶
type RunInWrap struct { Word string WithPronounciations WithVariants }
type Sense ¶
type Sense struct { SenseNumber string `json:"sn,omitempty"` WithDefiningText WithInflections WithGeneralLabels WithPronounciations WithSenseSpecificGrammaticalLabel WithDividedSense WithSubjectStatusLabels WithVariants }
type SenseSequence ¶
type SenseSequence SequenceMapping
SenseSequence https://dictionaryapi.com/products/json#sec-2.vis
func (SenseSequence) Contents ¶
func (vi SenseSequence) Contents() ([]SenseSequenceItem, error)
Contents returns a copied slice of the contents in the SenseSequence
type SenseSequenceItem ¶
type SenseSequenceItem struct { Type SenseSequenceItemType Sense *Sense AbbreviatedSense *AbbreviatedSense BindingSubstitute *BindingSubstitute SubSequence *SenseSequence ParenthesizedSequence *SenseSequence }
SenseSequenceItem is an item of the SI container
type SenseSequenceItemType ¶
type SenseSequenceItemType int
SenseSequenceItemType is an enum type for the types of items in SenseSequence
func SenseSequenceItemTypeFromString ¶
func SenseSequenceItemTypeFromString(id string) SenseSequenceItemType
SenseSequenceItemTypeFromString returns a SenseSequenceItemType from its string ID
func (SenseSequenceItemType) String ¶
func (t SenseSequenceItemType) String() string
type SequenceMapping ¶
type SequenceMapping []SequenceMappingItem
SequenceMapping is an abstract type for de/serializing a JSON structure shaped like [ [string, any] ]
func (SequenceMapping) Filter ¶
func (sm SequenceMapping) Filter(key string) []*SequenceMappingItem
Filter returns a slice of the items of the sequence mapping that have the specified key
type SequenceMappingItem ¶
type SequenceMappingItem []interface{}
SequenceMappingItem is a key/value pair represented in a 2-item slice
func (SequenceMappingItem) Key ¶
func (it SequenceMappingItem) Key() (string, error)
Key returns the key string of it
func (SequenceMappingItem) UnmarshalValue ¶
func (it SequenceMappingItem) UnmarshalValue(output interface{}) error
UnmarshalValue marshals then unmarshals the value of the item; used to assert/assign types to an otherwise opaque interface{} value
func (SequenceMappingItem) Value ¶
func (it SequenceMappingItem) Value() (interface{}, error)
Value returns the interface{} value of it
type Sound ¶
type Sound struct { Filename string `json:"audio,omitempty"` Ref string `json:"ref,omitempty"` Stat string `json:"stat,omitempty"` }
Sound https://dictionaryapi.com/products/json#sec-2.prs To see how to use this sound file reference
type SupplementalInfo ¶
type SupplementalInfo SequenceMapping
SupplementalInfo https://dictionaryapi.com/products/json#sec-2.snote
func (SupplementalInfo) Contents ¶
func (si SupplementalInfo) Contents() ([]SupplementalInfoItem, error)
Contents returns a copied slice of the contents in the SupplementalInfo
type SupplementalInfoItem ¶
type SupplementalInfoItem struct { Type SupplementalInfoItemType Text *string RunIn *RunIn VerbalIllustration *VerbalIllustration }
SupplementalInfoItem is an item of the SI container
type SupplementalInfoItemType ¶
type SupplementalInfoItemType int
SupplementalInfoItemType is an enum type for the types of items in SupplementalInfo
func SupplementalInfoItemTypeFromString ¶
func SupplementalInfoItemTypeFromString(id string) SupplementalInfoItemType
SupplementalInfoItemTypeFromString returns a SupplementalInfoItemType from its string ID
func (SupplementalInfoItemType) String ¶
func (t SupplementalInfoItemType) String() string
type SynonymParagraph ¶
type SynonymParagraph struct { Label string `json:"pl,omitempty"` Text *SynonymParagraphText `json:"pt,omitempty"` SeeAlsoRefs []string `json:"sarefs,omitempty"` }
SynonymParagraph https://dictionaryapi.com/products/json#sec-2.syns
type SynonymParagraphText ¶
type SynonymParagraphText SequenceMapping
SynonymParagraphText https://dictionaryapi.com/products/json#sec-2.syns
func (SynonymParagraphText) Contents ¶
func (upt SynonymParagraphText) Contents() ([]SynonymParagraphTextItem, error)
Contents returns a copied slice of the contents in the SynonymParagraphText
type SynonymParagraphTextItem ¶
type SynonymParagraphTextItem struct { Type SynonymParagraphTextItemType Text *string VerbalIllustration *VerbalIllustration }
SynonymParagraphTextItem is an item of the SynonymParagraphText container
type SynonymParagraphTextItemType ¶
type SynonymParagraphTextItemType int
SynonymParagraphTextItemType is an enum type for the types of items in the paragraph
const ( SynonymParagraphTextItemTypeUnknown SynonymParagraphTextItemType = iota SynonymParagraphTextItemTypeText SynonymParagraphTextItemTypeVerbalIllustration )
Values for SynonymParagraphTextItemType
func SynonymParagraphTextItemTypeFromString ¶
func SynonymParagraphTextItemTypeFromString(id string) SynonymParagraphTextItemType
SynonymParagraphTextItemTypeFromString returns a SynonymParagraphTextItemType from its string ID
func (SynonymParagraphTextItemType) String ¶
func (t SynonymParagraphTextItemType) String() string
type Table ¶
type UndefinedRunOn ¶
type UndefinedRunOn struct { Word string `json:"ure,omitempty"` WithFunctionalLabel WithUndefinedRunonText }
UndefinedRunOn https://dictionaryapi.com/products/json#sec-2.uros
type UndefinedRunonText ¶
type UndefinedRunonText SequenceMapping
UndefinedRunonText https://dictionaryapi.com/products/json#sec-2.uros
func (UndefinedRunonText) Contents ¶
func (uro UndefinedRunonText) Contents() ([]UndefinedRunonTextItem, error)
Contents returns a copied slice of the contents in the UndefinedRunonText
type UndefinedRunonTextItem ¶
type UndefinedRunonTextItem struct { Type UndefinedRunonTextItemType WithVerbalIllustrations WithUsageNotes }
UndefinedRunonTextItem is an item of the SI container
type UndefinedRunonTextItemType ¶
type UndefinedRunonTextItemType int
UndefinedRunonTextItemType is an enum type for the types of items in UndefinedRunonText
func UndefinedRunonTextItemTypeFromString ¶
func UndefinedRunonTextItemTypeFromString(id string) UndefinedRunonTextItemType
UndefinedRunonTextItemTypeFromString returns a UndefinedRunonTextItemType from its string ID
func (UndefinedRunonTextItemType) String ¶
func (t UndefinedRunonTextItemType) String() string
type UsageNote ¶
type UsageNote SequenceMapping
UsageNote // https://dictionaryapi.com/products/json#sec-2.uns
func (UsageNote) Contents ¶
func (un UsageNote) Contents() ([]UsageNoteItem, error)
Contents returns a copied slice of the contents in the UsageNote
type UsageNoteItem ¶
type UsageNoteItem struct { Type UsageNoteItemType Text *string RunIn *RunIn VerbalIllustration *VerbalIllustration }
UsageNoteItem is an item of the UsageNote container
type UsageNoteItemType ¶
type UsageNoteItemType int
UsageNoteItemType is an enum type for the types of items in the Usage Note
const ( UsageNoteItemTypeUnknown UsageNoteItemType = iota UsageNoteItemTypeText UsageNoteItemTypeRunIn UsageNoteItemTypeVerbalIllustration )
Values for UsageNoteItemType
func UsageNoteItemTypeFromString ¶
func UsageNoteItemTypeFromString(id string) UsageNoteItemType
UsageNoteItemTypeFromString returns a UsageNoteItemType from its string ID
func (UsageNoteItemType) String ¶
func (t UsageNoteItemType) String() string
type UsageParagraphText ¶
type UsageParagraphText SequenceMapping
UsageParagraphText https://dictionaryapi.com/products/json#sec-2.usages
func (UsageParagraphText) Contents ¶
func (upt UsageParagraphText) Contents() ([]UsageParagraphTextItem, error)
Contents returns a copied slice of the contents in the UsageParagraphText
type UsageParagraphTextItem ¶
type UsageParagraphTextItem struct { Type UsageParagraphTextItemType Text *string VerbalIllustration *VerbalIllustration SeeAlso []UsageSeeAlso }
UsageParagraphTextItem is an item of the UsageParagraphText container
type UsageParagraphTextItemType ¶
type UsageParagraphTextItemType int
UsageParagraphTextItemType is an enum type for the types of items in the paragraph
const ( UsageParagraphTextItemTypeUnknown UsageParagraphTextItemType = iota UsageParagraphTextItemTypeText UsageParagraphTextItemTypeVerbalIllustration UsageParagraphTextItemTypeSeeAlso )
Values for UsageParagraphTextItemType
func UsageParagraphTextItemTypeFromString ¶
func UsageParagraphTextItemTypeFromString(id string) UsageParagraphTextItemType
UsageParagraphTextItemTypeFromString returns a UsageParagraphTextItemType from its string ID
func (UsageParagraphTextItemType) String ¶
func (t UsageParagraphTextItemType) String() string
type UsageParagraphs ¶
type UsageParagraphs struct { Label string `json:"pl,omitempty"` Text *UsageParagraphText `json:"pt,omitempty"` }
UsageParagraphs https://dictionaryapi.com/products/json#sec-2.usages
type UsageSeeAlso ¶
type UsageSeeAlso struct {
Reference string `json:"uaref,omitempty"`
}
UsageSeeAlso is "uaref" here https://dictionaryapi.com/products/json#sec-2.usages
type Variant ¶
type Variant struct { Text string `json:"va,omitempty"` Label string `json:"vl,omitempty"` WithPronounciations WithSenseSpecificInflectionPluralLabel }
type VerbalIllustration ¶
type VerbalIllustration struct { Text string `json:"t,omitempty"` WithQuoteAttribution }
VerbalIllustration https://dictionaryapi.com/products/json#sec-2.vis
type WithArt ¶
type WithArt struct { // https://dictionaryapi.com/products/json#sec-2.art Art *Art `json:"art,omitempty"` }
WithArt is a compositing type for parsing the `art` property
type WithCognateCrossReferences ¶
type WithCognateCrossReferences struct {
CognateCrossReferences []CognateCrossReference `json:"cxs,omitempty"`
}
WithCognateCrossReferences is a compositing type for parsing the `cxs` property
type WithDefinedRunOns ¶
type WithDefinedRunOns struct { // https://dictionaryapi.com/products/json#sec-2.dros DefinedRunOns []DefinedRunOn `json:"dros,omitempty"` }
WithDefinedRunOns is a compositing type for parsing the `dros` property
type WithDefiningText ¶
type WithDefiningText struct { // https://dictionaryapi.com/products/json#sec-2.dt DefiningText DefiningText `json:"dt,omitempty"` }
WithDefiningText is a compositing type for parsing the `dt` property
type WithDefinitions ¶
type WithDefinitions struct {
Definitions []Definition `json:"def,omitempty"`
}
WithDefinitions is a compositing type for parsing the `def` property
type WithDirectionalCrossReferences ¶
type WithDirectionalCrossReferences struct {
DirectionalCrossReferences []string `json:"dxnls,omitempty"`
}
WithDirectionalCrossReferences is a compositing type for parsing the `dxlns` property
type WithDividedSense ¶
type WithDividedSense struct {
DividedSense *DividedSense `json:"sdsense,omitempty"`
}
WithDividedSense is a compositing type for parsing the `sdsense` property
type WithEtymology ¶
type WithEtymology struct {
Etymology *Etymology `json:"et,omitempty"`
}
WithEtymology is a compositing type for parsing the `et` property
type WithFirstKnownDate ¶
type WithFirstKnownDate struct {
FirstKnownDate string `json:"date,omitempty"`
}
WithFirstKnownDate is a compositing type for parsing the `date` property
type WithFunctionalLabel ¶
type WithFunctionalLabel struct { // https://dictionaryapi.com/products/json#sec-2.fl Function string `json:"fl,omitempty"` }
WithFunctionalLabel is a compositing type for parsing the `fl` property
type WithGeneralLabels ¶
type WithGeneralLabels struct { // https://dictionaryapi.com/products/json#sec-2.lbs Labels []string `json:"lbs,omitempty"` }
WithGeneralLabels is a compositing type for parsing the `lbs` property
type WithHeadwordInfo ¶
type WithHeadwordInfo struct {
HeadwordInfo *HeadwordInfo `json:"hwi,omitempty"`
}
WithHeadwordInfo is a compositing type for parsing the `hwi` property
type WithHomograph ¶
type WithHomograph struct { // https://dictionaryapi.com/products/json#sec-2.hom Homograph int `json:"hom,omitempty"` }
WithHomograph is a compositing type for parsing the `hom` property
type WithInflections ¶
type WithInflections struct {
Inflections []Inflection `json:"ins,omitempty"`
}
WithInflections is a compositing type for parsing the `ins` property
type WithMetadata ¶
type WithMetadata struct {
Metadata *Metadata `json:"meta,omitempty"`
}
WithMetadata is a compositing type for parsing the `metadata` property
type WithParenthesizedSubjectStatusLabel ¶
type WithParenthesizedSubjectStatusLabel struct { // https://dictionaryapi.com/products/json#sec-2.psl ParenthesizedSubjectStatusLabel string `json:"psl,omitempty"` }
WithParenthesizedSubjectStatusLabel is a compositing type for parsing the `psl` property
type WithPronounciations ¶
type WithPronounciations struct {
Pronounciations []Pronounciation `json:"prs,omitempty"`
}
WithPronounciations is a compositing type for parsing the `prs` property
type WithQuoteAttribution ¶
type WithQuoteAttribution struct { // https://dictionaryapi.com/products/json#sec-2.aq QuoteAttribution *QuoteAttribution `json:"aq,omitempty"` }
WithQuoteAttribution is a compositing type for parsing the `aq` property
type WithQuotes ¶
type WithQuotes struct { // https://dictionaryapi.com/products/json#sec-2.quotes Quotes []Quote `json:"quotes,omitempty"` }
WithQuotes is a compositing type for parsing the `quotes` property
type WithSenseSequence ¶
type WithSenseSequence struct {
SenseSequence *SenseSequence `json:"sseq,omitempty"`
}
WithSenseSequence is a compositing type for parsing the `sseq` property
type WithSenseSpecificGrammaticalLabel ¶
type WithSenseSpecificGrammaticalLabel struct { // https://dictionaryapi.com/products/json#sec-2.sgram SenseSpecificGrammaticalLabel string `json:"sgram,omitempty"` }
WithSenseSpecificGrammaticalLabel is a compositing type for parsing the `sgram` property
type WithSenseSpecificInflectionPluralLabel ¶
type WithSenseSpecificInflectionPluralLabel struct { // https://dictionaryapi.com/products/json#sec-2.spl SenseSpecificInflectionPluralLabel string `json:"spl,omitempty"` }
WithSenseSpecificInflectionPluralLabel is a compositing type for parsing the `spl` property
type WithShortDefinitions ¶
type WithShortDefinitions struct {
ShortDefinitions []string `json:"shortdef,omitempty"`
}
WithShortDefinitions is a compositing type for parsing the `shortdef` property
type WithSubjectStatusLabels ¶
type WithSubjectStatusLabels struct { // https://dictionaryapi.com/products/json#sec-2.sls SubjectStatusLabels []string `json:"sls,omitempty"` }
WithSubjectStatusLabels is a compositing type for parsing the `sls` property
type WithSynonyms ¶
type WithSynonyms struct { // https://dictionaryapi.com/products/json#sec-2.syns SynonymParagraphs []SynonymParagraph `json:"syns,omitempty"` }
WithSynonyms is a compositing type for parsing the `syns` property
type WithTable ¶
type WithTable struct { // https://dictionaryapi.com/products/json#sec-2.table Table *Table `json:"table,omitempty"` }
WithTable is a compositing type for parsing the `table` property
type WithUndefinedRunOns ¶
type WithUndefinedRunOns struct { // https://dictionaryapi.com/products/json#sec-2.uros UndefinedRunOns []UndefinedRunOn `json:"uro,omitempty"` }
WithUndefinedRunOns is a compositing type for parsing the `uro` property
type WithUndefinedRunonText ¶
type WithUndefinedRunonText struct {
UndefinedRunonText *UndefinedRunonText `json:"utxt,omitempty"`
}
WithUndefinedRunonText is a compositing type for parsing the `utxt` property
type WithUsageNotes ¶
type WithUsageNotes struct {
UsageNotes []UsageNote
}
WithUsageNotes is a compositing type for parsing the `uns` property
type WithUsages ¶
type WithUsages struct { // https://dictionaryapi.com/products/json#sec-2.usages UsageParagraphs []UsageParagraphs `json:"usages,omitempty"` }
WithUsages is a compositing type for parsing the `usages` property
type WithVariants ¶
type WithVariants struct { // https://dictionaryapi.com/products/json#sec-2.vrs Variants []Variant `json:"vrs,omitempty"` }
WithVariants is a compositing type for parsing the `vrs` property
type WithVerbalIllustrations ¶
type WithVerbalIllustrations struct {
VerbalIllustrations []VerbalIllustration `json:"vis,omitempty"`
}
WithVerbalIllustrations is a compositing type for parsing the `vis` property
Source Files ¶
- arraycontainer.go
- art.go
- attribution.go
- cognates.go
- date.go
- definingtext.go
- definition.go
- dxnls.go
- etymology.go
- headwordinfo.go
- homograph.go
- inflection.go
- json.go
- labels.go
- metadata.go
- pronounciation.go
- quotes.go
- results.go
- runin.go
- runon.go
- runontext.go
- sdsense.go
- sense.go
- shortdef.go
- sseq.go
- supplementalinfo.go
- synonyms.go
- table.go
- usage.go
- usagenotes.go
- variants.go
- verbalillustration.go