Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct { Types []string `json:"type"` Properties PropertyMap `json:"properties"` ID string `json:"id,omitempty"` }
type Microdata ¶
type Microdata struct {
Items []*Item `json:"items"`
}
func ParseHTML ¶
ParseHTML parses the HTML document available in the given reader and returns the microdata. The given url is used to resolve the URLs in the attributes. The given contentType is used convert the content of r to UTF-8. When the given contentType is equal to "", the content type will be detected using `http.DetectContentType`.
func ParseHTMLTree ¶
ParseHTMLTree parses the HTML document passed as an argument
type PropertyMap ¶
Click to show internal directories.
Click to hide internal directories.