Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultEncoding describe a default encoding. DefaultEncoding string = "UTF-8" // Expected number of Charset header components CharSetComponent int = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLContent ¶
type HTMLContent struct { ContentEncoding string URL string // contains filtered or unexported fields }
HTMLContent describe the html page of the URL.
func FetchHTMLContent ¶
func FetchHTMLContent(c context.Context, url string) (*HTMLContent, error)
FetchHTMLContent fetch the url content, check and return HTMLContent instance.
func NewHTMLContent ¶
func NewHTMLContent(url string) HTMLContent
NewHTMLContent return a new HTMLContent instance.
func (*HTMLContent) MetaAttrs ¶
func (content *HTMLContent) MetaAttrs() map[string]string
MetaAttrs return the Meta attributes of the HTMLContent.
Click to show internal directories.
Click to hide internal directories.