types

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EtymologyItemTypeUnknown = iota
	EtymologyItemTypeText
	EtymologyItemTypeSupplementalInfo
)

Values for EtymologyElementType

View Source
const (
	UndefinedRunonTextItemTypeUnknown = iota
	UndefinedRunonTextItemTypeVerbalIllustrations
	UndefinedRunonTextItemTypeUsageNotes
)

Values for UndefinedRunonTextItemType

View Source
const (
	SenseSequenceItemTypeUnknown = iota
	SenseSequenceItemTypeSense
	SenseSequenceItemTypeAbbreviatedSense
	SenseSequenceItemTypeBindingSubstitute
	SenseSequenceItemTypeSubSequence
	SenseSequenceItemTypeParenthesizedSequence
)

Values for SenseSequenceItemType

View Source
const (
	SupplementalInfoItemTypeUnknown = iota
	SupplementalInfoItemTypeText
	SupplementalInfoItemTypeRunIn
	SupplementalInfoItemTypeVerbalIllustration
)

Values for SupplementalInfoItemType

Variables

View Source
var ErrInvalidSenseSequence = errors.New("invalid sense sequence")

ErrInvalidSenseSequence is an error when the sense sequence is structured wrong

View Source
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 Art

type Art struct {
	ID      string `json:"artid,omitempty"`
	Caption string `json:"capt,omitempty"`
}

Art https://dictionaryapi.com/products/json#sec-2.art

type BindingSubstitute

type BindingSubstitute Sense

BindingSubstitute is a special, broad kind of sense

type Biography

type Biography struct {
	PersonalName  string `json:"pname,omitempty"`
	Surname       string `json:"sname,omitempty"`
	AlternateName string `json:"altname,omitempty"`
}

Biography https://dictionaryapi.com/products/json#sec-2.bnw

type CalledAlso

type CalledAlso struct {
	Intro   string             `json:"intro,omitempty"`
	Targets []CalledAlsoTarget `json:"cats,omitempty"`
}

CalledAlso https://dictionaryapi.com/products/json#sec-2.ca

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 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 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 Metadata struct {
	ID        string   `json:"id,omitempty"`
	UUID      string   `json:"uuid,omitempty"`
	SortKey   string   `json:"sort,omitempty"`
	Source    string   `json:"src,omitempty"`
	Section   string   `json:"section,omitempty"`
	Stems     []string `json:"stems,omitempty"`
	Offensive bool     `json:"offensive"`
}

Metadata https://dictionaryapi.com/products/json#sec-2.meta

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
}

Quote https://dictionaryapi.com/products/json#sec-2.quotes

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

RunIn https://dictionaryapi.com/products/json#sec-2.ri

func (RunIn) Contents

func (ri RunIn) Contents() ([]RunInItem, error)

Contents returns a copied slice of the contents in the RunIn

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 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

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

type Table

type Table struct {
	ID          string `json:"tableid,omitempty"`
	DisplayName string `json:"displayname,omitempty"`
}

Table https://dictionaryapi.com/products/json#sec-2.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

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

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
}

Variant https://dictionaryapi.com/products/json#sec-2.vrs

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL