urlcheck

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: Apache-2.0 Imports: 13 Imported by: 61

Documentation

Index

Constants

View Source
const URLRE = `https?://[^ \t\n/$.?#].[^ \t\n"<]*`

URLRE is the regular expression to use to extract URLs from the input stream. Source: https://mathiasbynens.be/demo/url-regex

Variables

This section is empty.

Functions

func Check

func Check(r io.Reader) error

Check verifies the URLs provided by the given io.Reader.

func CheckURLsFromGrepOutput

func CheckURLsFromGrepOutput(cmd *exec.Cmd) error

CheckURLsFromGrepOutput runs the specified cmd, which should be grepping using the URLRE regular expression defined above.

Types

This section is empty.

Jump to

Keyboard shortcuts

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