We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
package main import ( "fmt" "github.com/jpillora/go-tld" ) func main() { urls := []string{ "http://google.com", "http://blog.google", "https://www.medi-cal.ca.gov/", "https://ato.gov.au", "http://a.very.complex-domain.co.uk:8080/foo/bar", "https://s3.amazonaws.com/happiness-report/2019/WHR19.pdf", } for _, url := range urls { u, _ := tld.Parse(url) fmt.Printf("%50s = [ %s ] [ %s ] [ %s ] [ %s ] [ %s ]\n", u, u.Subdomain, u.Domain, u.TLD, u.Port, u.Path) } }
panic: runtime error: index out of range
this lib is easy to use, i love it :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
panic: runtime error: index out of range
this lib is easy to use, i love it :)
The text was updated successfully, but these errors were encountered: