Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpAllText ¶
func DumpAllText(n *query.Node, pat string)
DumpAllText dumps all the text node in the HTML DOM that satisfy the regular expression provided.
func MustLoadHTML ¶
func MustLoadHTML(file string) *query.Node
MustLoadHTML loads and parses an HTML file.
func MustLoadJSON ¶
func MustLoadJSON(file string, v interface{})
MustLoadJSON loads and parses a JSON file.
Types ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response provides convenient methods to save an HTTP response's body.
func (Response) SavePrettyJSON ¶
SavePrettyJSON prettily formats a JSON response and save it to a file.
Click to show internal directories.
Click to hide internal directories.