Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Relaxed matches all the urls it can find Relaxed = regexp.MustCompile(relaxed) // Strict only matches urls with a scheme to avoid false positives Strict = regexp.MustCompile(strict) )
View Source
var PseudoTLDs = []string{
`bit`,
`exit`,
`i2p`,
`local`,
`onion`,
}
PseudoTLDs is a sorted list of some widely used unofficial TLDs
Sources:
- https://en.wikipedia.org/wiki/Pseudo-top-level_domain
- https://en.wikipedia.org/wiki/Category:Pseudo-top-level_domains
View Source
var TLDs = []string{}/* 1208 elements not displayed */
TLDs is a sorted list of all public top-level domains
Sources:
Functions ¶
func StrictMatching ¶ added in v0.4.0
StrictMatching matches urls like Strict but matching a specified scheme regular expression
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.