Documentation ¶
Index ¶
- func AbsoluteUrl(href, base string) string
- func Any(els []string, el string, match func(string, string) bool) bool
- func Attr(node *html.Node, key string) string
- func Closest(node *html.Node, sel string) *html.Node
- func ExtractText(content string) string
- func FindNodes(node *html.Node, match func(*html.Node) bool) []*html.Node
- func HTML(node *html.Node) string
- func InnerHTML(node *html.Node) string
- func Query(node *html.Node, sel string) []*html.Node
- func Text(node *html.Node) string
- func URLDomain(val string) string
- type ElementMatch
- type Matcher
- type MultiMatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsoluteUrl ¶
func ExtractText ¶
Types ¶
type ElementMatch ¶
type ElementMatch struct {
Name string
}
type Matcher ¶
func NewMatcher ¶
type MultiMatch ¶
type MultiMatch struct {
// contains filtered or unexported fields
}
func (*MultiMatch) Add ¶
func (m *MultiMatch) Add(matcher Matcher)
Click to show internal directories.
Click to hide internal directories.