Help us shape the future of Go! Take the 2026 Go Developer Survey

checker

package
v0.0.0-...-f4856b7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEAD, OKAY = color.RedString("DEAD"), color.GreenString("OKAY")

Functions

This section is empty.

Types

type Checker

type Checker struct {
	BaseUrl    *url.URL
	Output     io.Writer
	HttpClient *http.Client
	Visited    map[string]bool
	Results    []Result
}

func NewChecker

func NewChecker(out io.Writer, client *http.Client) *Checker

func (*Checker) AddResult

func (c *Checker) AddResult(link string, status string, isError bool)

AddResutl will write to the output if there is an error otherwise it will print the successful hit later.

func (*Checker) Check

func (c *Checker) Check(site string)

func (*Checker) Crawl

func (c *Checker) Crawl(page *url.URL)

type Result

type Result struct {
	Link   string
	Status string
}

Jump to

Keyboard shortcuts

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