Documentation ¶
Overview ¶
Package linkcheck implements a helper library to search for links in a message text and validate them by trying to call them
Index ¶
Constants ¶
View Source
const ( // DefaultCheckTimeout defines the default time the request to a site // may take to answer DefaultCheckTimeout = 10 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
Checker contains logic to detect and resolve links in a message
func (Checker) HeuristicScanForLinks ¶ added in v3.15.0
HeuristicScanForLinks takes a message and tries to find links within that message. Common methods like putting spaces into links are tried to circumvent.
func (Checker) ScanForLinks ¶
ScanForLinks takes a message and tries to find links within that message. This only detects links without any means of obfuscation like putting spaces into the link.
Click to show internal directories.
Click to hide internal directories.