Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Dictionary.com DictionaryCom = Endpoint{ QueryURL: urlDictionaryCom, GetDefs: scrapeDictionaryCom, } // lexico.com Lexico = Endpoint{ QueryURL: urlLexico, GetDefs: scrapeLexico, } // dictionary.cambridge.org Cambridge = Endpoint{ QueryURL: urlCambridge, GetDefs: scrapeCambridge, } )
Functions ¶
This section is empty.
Types ¶
type Endpoint ¶
type Endpoint struct { QueryURL func(string) string // Returns the url to search for a word GetDefs ScrapeDefsFunc // Returns the list of definitions }
type ScrapeDefsFunc ¶
ScrapeDefsFunc will take a goquery document and scrape the definitions off of it
Click to show internal directories.
Click to hide internal directories.