imagehost

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: GPL-2.0 Imports: 2 Imported by: 0

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

func ExtractHost(rawURL string) string

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.

Jump to

Keyboard shortcuts

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