Documentation ¶
Index ¶
- func GetDoc(c *http.Client, url string, headers map[string]string, ...) (*goquery.Document, error)
- func GetJSON(c *http.Client, url string, headers map[string]string, ...) error
- func GetURL(c *http.Client, url string, headers map[string]string, ...) ([]byte, int, bool, error)
- func Re(str string) *regexp.Regexp
- func ResolveURL(base, rel string) (string, error)
- func StrPtr(str string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDoc ¶
func GetDoc(c *http.Client, url string, headers map[string]string, acceptableStatuses []int) (*goquery.Document, error)
GetDoc gets a goquery doc from a url.
func GetJSON ¶
func GetJSON(c *http.Client, url string, headers map[string]string, acceptableStatuses []int, out interface{}) error
GetJSON gets a JSON document from a url.
func GetURL ¶
func GetURL(c *http.Client, url string, headers map[string]string, acceptableStatuses []int) ([]byte, int, bool, error)
GetURL gets a url. The client is optional.
func ResolveURL ¶
ResolveURL resolves a relative url.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.