helpers

package
v0.0.0-...-13999d3 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidURL        = errors.New("bad url entered as an argument")
	ErrURLNoSchemeOrHost = errors.New("url has no scheme or host")
)

Functions

func GatherURLS

func GatherURLS(ctx context.Context, n *html.Node, recursionMaxDepth int) []*url.URL

func GetHtmlNode

func GetHtmlNode(ctx context.Context, url *url.URL) (*html.Node, error)

GetHtmlNode returns the html node of the given url

func ValidateURL

func ValidateURL(urlForValidation string) (*url.URL, error)

ValidateURL validates the url

Types

This section is empty.

Jump to

Keyboard shortcuts

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