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 IsAPossibleLink(val string) bool
- func Query(node *html.Node, sel string) []*html.Node
- func Text(node *html.Node) string
- func TruncateText(input string, size int) 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 ¶
func IsAPossibleLink ¶
func TruncateText ¶
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.