Documentation ¶
Index ¶
- func Get(url string) (string, error)
- type Node
- 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 ¶
This section is empty.
Functions ¶
Types ¶
type Root ¶
func (Root) 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 ¶
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 ¶
Finds the next element sibling of the pointer in the DOM returning a struct with a pointer to it
func (Root) FindNextSibling ¶
func (Root) FindPrevElementSibling ¶
Finds the previous element sibling of the pointer in the DOM returning a struct with a pointer to it
func (Root) FindPrevSibling ¶
Click to show internal directories.
Click to hide internal directories.