Registry / utility / jpillora-go-tld

jpillora-go-tld

JSON →
library1.2.1gogounverified

Extends net/url with extra fields: Subdomain, Domain, TLD, and Port for URL parsing.

go get github.com/jpillora/go-tld
INSTALL
IMPORT
SIG · JPILLORA-GO-TLD
J
jpillora-go-tld
utilitygov1.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

tld
github.com/jpillora/go-tld

Parses a URL and extracts the domain.

package main import ( "fmt" "github.com/jpillora/go-tld" ) func main() { u, _ := tld.Parse("https://www.example.com/path") fmt.Println(u.Domain) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.1latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
jpillora-go-tld — go get jpillora-go-tld · libregistry