v1.0.2
Adds the compare method for domains.
// Compare is a boolean comparison test for Apex and Host hostnames; the
// Apex form will always be empty on the parser failure or when an IP is
// detected so this sould only be used with domains
func (u *URL) Compare() bool {
return len(u.Apex) > 0 && len(u.Host) == len(u.Apex)
}