Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTMLQuery ¶
HTMLQuery queries an HTML document using a CSS selector. If attr is non-empty, it extracts that attribute from matched elements. Otherwise it extracts text content.
func RegexReplace ¶
Types ¶
type Match ¶
type Match struct {
Value string `json:"value"`
Start int `json:"start"`
End int `json:"end"`
Groups []string `json:"groups,omitempty"`
}
Match represents a single regex match.
type RegexResult ¶
RegexResult holds the result of a regex test.
Click to show internal directories.
Click to hide internal directories.