Documentation ¶
Index ¶
- type Parser
- func (p *Parser) Article() *data.MarkupArticle
- func (p *Parser) Author() string
- func (p *Parser) Copyright() string
- func (p *Parser) Description() string
- func (p *Parser) Images() []data.MarkupImage
- func (p *Parser) OptOut() bool
- func (p *Parser) Publisher() string
- func (p *Parser) Title() string
- func (p *Parser) Type() string
- func (p *Parser) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser recognizes and parses the IE Reading View markup tags according to http://ie.microsoft.com/testdrive/browser/readingview, and returns the properties that matter to distilled content - title, date, author, publisher, dominant image, inline images, caption, copyright, and opt-out. Some properties require the scanning and parsing of a lot of nodes, so each property is scanned for and verified for legitimacy lazily, i.e. only upon request. It implements markup.Accessor.
func (*Parser) Article ¶
func (p *Parser) Article() *data.MarkupArticle
func (*Parser) Description ¶
func (*Parser) Images ¶
func (p *Parser) Images() []data.MarkupImage
Click to show internal directories.
Click to hide internal directories.