utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLink(link string, c chan models.LinkStatus, userAgent string)

CheckLink to validate the link status

func DisplayHelpPanel

func DisplayHelpPanel()

DisplayHelpPanel display help panel

func ParseIgnoreListPattern

func ParseIgnoreListPattern(fileData string) string

ParseIgnoreListPattern to parse link to ignore in check from a text file

func ParseLinks(data string) []string

ParseLinks all valid URLs from a string data

func PrintNoArgsError

func PrintNoArgsError()

PrintNoArgsError to display error for no argument

func PrintVersion

func PrintVersion()

PrintVersion to display version of app

func ReadFromFile

func ReadFromFile(filename string) string

ReadFromFile to read a file and converse to string data

func WriteReportToFile

func WriteReportToFile(summary models.CheckSummary)

WriteReportToFile to output the summary into a report

Types

This section is empty.

Jump to

Keyboard shortcuts

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