Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var IncompleteTLDs = []string{}/* 130 elements not displayed */
Functions ¶
This section is empty.
Types ¶
type Command ¶ added in v0.3.0
type Domain ¶ added in v0.3.0
type Domain struct { WhoisServer string // contains filtered or unexported fields }
func (*Domain) Expiry ¶ added in v0.3.0
Expiry returns the expiration date of a given fully-qualified domain name according to public DNS records. It returns a time.Time value if successful, otherwise it will return any errors encountered.
func (*Domain) Root ¶ added in v0.3.0
Root returns the root domain (example.com, example.net, etc.) of a given fully-qualified domain name. It returns a String if successful, otherwise it will return an empty String and any errors encountered.
func (*Domain) TLD ¶ added in v0.3.0
TLD returns the top-level domain (.com, .net, etc.) of a given fully-qualified domain name according to the semi-canonical list maintained at https://publicsuffix.org/. It returns a String if successful, otherwise it will return an empty String and any errors encountered.