lib

package
v0.0.0-...-4b91e39 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2018 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidHTTPURL

func IsValidHTTPURL(rawURL string) bool

IsValidHTTPURL Verifies that the given string is an HTTP of HTTPS URL

func PrependBaseURL

func PrependBaseURL(link string, baseURL string) string

PrependBaseURL add the base URL if the scheme is empty

func ReplaceLinks(content string, links []string, hashes []string) string

ReplaceLinks replaces the links by their hash in the content

func Scrape

func Scrape(URL string, depth int) (string, []string)

Scrape downloads the content of the given URL and returns it as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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