Versions in this module Expand all Collapse all v1 v1.2.6 Feb 16, 2024 Changes in this version + var Cookies = make(map[string]string) + var Headers = make(map[string]string) + func Cookie(n string, v string) + func Get(url string) (string, error) + func GetWithClient(url string, client *http.Client) (string, error) + func Header(n string, v string) + func Post(url string, bodyType string, body interface{}) (string, error) + func PostForm(url string, data url.Values) (string, error) + func PostWithClient(url string, bodyType string, body interface{}, client *http.Client) (string, error) + func SetDebug(d bool) + type Error struct + Type ErrorType + func (se Error) Error() string + type ErrorType int + const ErrCreatingGetRequest + const ErrCreatingPostRequest + const ErrElementNotFound + const ErrInGetRequest + const ErrMarshallingPostRequest + const ErrNoNextElementSibling + const ErrNoNextSibling + const ErrNoPreviousElementSibling + const ErrNoPreviousSibling + const ErrReadingResponse + const ErrUnableToParse + type Root struct + Error *Error + NodeValue string + Pointer *html.Node + func HTMLParse(s string) Root + func (r Root) Attrs() map[string]string + func (r Root) Children() []Root + func (r Root) Find(args ...string) Root + func (r Root) FindAll(args ...string) []Root + func (r Root) FindAllStrict(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) FindStrict(args ...string) Root + func (r Root) FullText() string + func (r Root) HTML() string + func (r Root) Text() string