Documentation
¶
Index ¶
Constants ¶
View Source
const (
EmptyHostDomain = "empty host"
)
Variables ¶
This section is empty.
Functions ¶
func ExtractEffectiveTLDPlusOne ¶
ExtractEffectiveTLDPlusOne extracts the "effective TLD+1" (eTLD+1) from a given URL. Example: "https://blog.example.co.uk" → "example.co.uk" - Parses the URL and validates the host. - Uses publicsuffix package to determine the registrable domain. - Returns an error if input is malformed or domain is not derivable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.