Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var HostMapping = map[string]string{
"ibb.co": "imgbb",
"pixhost.cc": "pixhost",
"pixhost.to": "pixhost",
"imgbox.com": "imgbox",
"beyondhd.co": "bhd",
"imagebam.com": "bam",
"onlyimage.org": "onlyimage",
"ptscreens.com": "ptscreens",
"img.passtheima.ge": "passtheimage",
"imgur.com": "imgur",
"postimg.cc": "postimg",
"digitalcore.club": "sharex",
"img.digitalcore.club": "sharex",
"kshare.club": "kshare",
"img.pterclub.com": "pterclub",
"s3.pterclub.com": "pterclub",
"yes.ilikeshots.club": "ilikeshots",
"imgbox": "imgbox",
"i.ibb.co": "imgbb",
}
HostMapping maps URL domain patterns to normalized host names
Functions ¶
func ExtractHost ¶
ExtractHost extracts the normalized host name from a URL. Returns the mapped host name if found, otherwise returns the domain name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.