Documentation ¶
Index ¶
- Variables
- func Get(url string) (string, error)
- func Header(n string, v string)
- func SetDebug(d bool)
- type Root
- func (r Root) Attrs() map[string]string
- func (r Root) Find(args ...string) Root
- func (r Root) FindAll(args ...string) []Root
- func (r Root) FindNextElementSibling() Root
- func (r Root) FindNextSibling() Root
- func (r Root) FindPrevElementSibling() Root
- func (r Root) FindPrevSibling() Root
- func (r Root) Text() string
Constants ¶
This section is empty.
Variables ¶
var Headers = make(map[string]string)
Headers contains all HTTP headers to send
Functions ¶
Types ¶
type Root ¶
Root is a structure containing a pointer to an html node, the node value, and an error variable to return an error if occurred
func (Root) Find ¶
Find finds the first occurrence of the given tag name, with or without attribute key and value specified, and returns a struct with a pointer to it
func (Root) FindAll ¶
FindAll finds all occurrences of the given tag name, with or without key and value specified, and returns an array of structs, each having the respective pointers
func (Root) FindNextElementSibling ¶
FindNextElementSibling finds the next element sibling of the pointer in the DOM returning a struct with a pointer to it
func (Root) FindNextSibling ¶
FindNextSibling finds the next sibling of the pointer in the DOM returning a struct with a pointer to it
func (Root) FindPrevElementSibling ¶
FindPrevElementSibling finds the previous element sibling of the pointer in the DOM returning a struct with a pointer to it
func (Root) FindPrevSibling ¶
FindPrevSibling finds the previous sibling of the pointer in the DOM returning a struct with a pointer to it