Closed ChadTaljaardt closed 5 years ago
Is there a way i can parse a domain such as example.google.com
example.google.com
Unfortunately not
The tld package has the same API as net/url
You can do this instead:
u, err := tld.Parse("http://" + hostname)
Is there a way i can parse a domain such as
example.google.com