h

package
v0.0.0-...-0161461 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 Re

func Re(str string) *regexp.Regexp

Re is an alias for regexp.MustCompile.

func ResolveURL

func ResolveURL(base, rel string) (string, error)

ResolveURL resolves a relative url.

func StrPtr

func StrPtr(str string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL