Versions in this module Expand all Collapse all v0 v0.0.2 Oct 2, 2020 Changes in this version + type CollegiateResultFormatter types.CollegiateResult + func (f CollegiateResultFormatter) ANSI(opts FormatterOptions) (string, error) + func (f CollegiateResultFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f CollegiateResultFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f CollegiateResultFormatter) Plain(opts FormatterOptions) (string, error) + type CollegiateResultsFormatter []types.CollegiateResult + func (f CollegiateResultsFormatter) ANSI(opts FormatterOptions) (string, error) + func (f CollegiateResultsFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f CollegiateResultsFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f CollegiateResultsFormatter) Plain(opts FormatterOptions) (string, error) + type DefiningTextFormatter types.DefiningText + func (f DefiningTextFormatter) ANSI(opts FormatterOptions) (string, error) + func (f DefiningTextFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f DefiningTextFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f DefiningTextFormatter) Plain(opts FormatterOptions) (string, error) + type DefinitionsFormatter []types.Definition + func (f DefinitionsFormatter) ANSI(opts FormatterOptions) (string, error) + func (f DefinitionsFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f DefinitionsFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f DefinitionsFormatter) Plain(opts FormatterOptions) (string, error) + type Formatter interface + ANSI func(FormatterOptions) (string, error) + HTML func(FormatterOptions) ([]byte, error) + JSON func(FormatterOptions) ([]byte, error) + Plain func(FormatterOptions) (string, error) + func Format(item interface{}) Formatter + type FormatterOptions struct + A aurora.Aurora + Homographs int + Prefix string + func (fo FormatterOptions) WithAurora(a aurora.Aurora) FormatterOptions + func (fo FormatterOptions) WithHomographs(h int) FormatterOptions + func (fo FormatterOptions) WithPrefix(p string) FormatterOptions + type MWXMLChild struct + Node *MWXMLNode + Text string + type MWXMLNode struct + Attrs []xml.Attr + Children []MWXMLChild + XMLName xml.Name + func (p *MWXMLNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (p MWXMLNode) GetArgs() ([]string, error) + func (p MWXMLNode) GetAttr(attr string) (string, bool) + type MerriamWebsterTagTextFormatter string + func (f MerriamWebsterTagTextFormatter) ANSI(opts FormatterOptions) (string, error) + func (f MerriamWebsterTagTextFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f MerriamWebsterTagTextFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f MerriamWebsterTagTextFormatter) Plain(opts FormatterOptions) (string, error) + type PronounciationsFormatter []types.Pronounciation + func (f PronounciationsFormatter) ANSI(opts FormatterOptions) (string, error) + func (f PronounciationsFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f PronounciationsFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f PronounciationsFormatter) Plain(opts FormatterOptions) (string, error) + type SenseFormatter types.Sense + func (f SenseFormatter) ANSI(opts FormatterOptions) (string, error) + func (f SenseFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f SenseFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f SenseFormatter) Plain(opts FormatterOptions) (string, error) + type SenseSequenceFormatter types.SenseSequence + func (f SenseSequenceFormatter) ANSI(opts FormatterOptions) (string, error) + func (f SenseSequenceFormatter) HTML(opts FormatterOptions) ([]byte, error) + func (f SenseSequenceFormatter) JSON(opts FormatterOptions) ([]byte, error) + func (f SenseSequenceFormatter) Plain(opts FormatterOptions) (string, error)