http

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyHostDomain = "empty host"
)

Variables

This section is empty.

Functions

func ExtractEffectiveTLDPlusOne

func ExtractEffectiveTLDPlusOne(rawURL string) (string, error)

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.

Jump to

Keyboard shortcuts

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