Versions in this module Expand all Collapse all v0 v0.0.12 Jul 31, 2025 v0.0.11 Jul 31, 2025 Changes in this version + var MediaExtensions = map[string]bool + var StandardExcludeTags = []string + func AreRelatedHosts(url1, url2 *url.URL) bool + func AreSameHost(url1, url2 *url.URL) bool + func Chunk(text string, size int) []string + func EndsWithPunctuation(s string) bool + func FormatHTML(html string) string + func IsMediaURL(u *url.URL) bool + func Markdown(html string) (string, error) + func NormalizeText(text string) string + func NormalizeURL(value string) (*url.URL, error) + func ReadFileItems(filename string) ([]string, error) + func ResolveLink(domain, value string) (string, bool) + func SortURLs(urls []*url.URL) + type Document struct + func NewDocument(html string) (*Document, error) + func (d *Document) Author() string + func (d *Document) CanonicalURL() string + func (d *Document) Description() string + func (d *Document) GoqueryDocument() *goquery.Document + func (d *Document) H1() string + func (d *Document) Icon() string + func (d *Document) Image() string + func (d *Document) Images() []*Link + func (d *Document) Keywords() []string + func (d *Document) Language() string + func (d *Document) Links() []*Link + func (d *Document) Meta() []*Meta + func (d *Document) Metadata() Metadata + func (d *Document) Paragraphs() []string + func (d *Document) PublishedTime() time.Time + func (d *Document) Raw() string + func (d *Document) Render(options RenderOptions) (string, error) + func (d *Document) Robots() string + func (d *Document) Title() string + func (d *Document) TwitterSite() string + type Link struct + Text string + URL string + func (l *Link) Host() string + type Meta struct + Charset string + Content string + Name string + Property string + Tag string + type Metadata struct + Author string + CanonicalURL string + Description string + Heading string + Icon string + Image string + Keywords []string + Language string + PublishedTime string + Robots string + Tags []*Meta + Title string + type RenderOptions struct + ExcludeTags []string + OnlyMainContent bool + Prettify bool + func (opts RenderOptions) HasFiltering() bool + func (opts RenderOptions) IsEmpty() bool