Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Ports = map[string]int{
"http": 80,
"https": 443,
"ftp": 21,
}
)
Functions ¶
func CountUniqueNormalizedUrls ¶
@ CountUniqueNormalizedUrls counts unique normalized urls @ calls NormalizeURL() @ Ex: ["https://example.com?a=1&b=2", "https://example.com?b=2&a=1"] returns 1 @ As these 2 urls are same after they are normalized
func CountUniqueNormalizedUrlsPerTopLevelDomain ¶
@ CountUniqueNormalizedUrls counts unique normalized url per TLD @ calls NormalizeURL() @ Ex: ["https://example.com", "https://subdomain.example.com"] returns map["example.com" => 2]
func NormalizeURL ¶
@ NormalizeURL() returns RFC-3986 formatted string @ this method is also being used as helper: @ CountUniqueNormalizedUrlsPerTopLevelDomain && CountUniqueNormalizedUrls
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.