package
0.0.0-20190911083921-4033b5f7dd89
Repository: https://github.com/bobesa/go-domain-util.git
Documentation: pkg.go.dev
# Functions
Domain returns top level domain from url string.
DomainPrefix returns second-level domain from provided url.
DomainSuffix returns domain suffix from provided url.
HasSubdomain reports whether domain contains any subdomain.
Password returns password from given url
If password is not present - return empty string.
Protocol returns protocol from given url
If protocol is not present - return empty string.
SplitDomain split domain into string array for example, zh.wikipedia.org will split into {"zh", "wikipedia", "org"}.
Subdomain returns subdomain from provided url.
Username returns username from given url
If username is not present - return empty string.