View definition

func CompareDomainName

Defined in


CompareDomainName compares the names s1 and s2 and returns how many labels they have in common starting from the *right*. The comparison stops at the first inequality. The names are not downcased before the comparison. and have two labels in common: miek and nl and have one label in common: nl

s1 and s2 must be syntactically valid domain names.

CompareDomainName is referenced in 4 repositories