Lines Matching full:suffix
20 // PublicSuffixList provides the public suffix of a domain. For example:
21 // - the public suffix of "example.com" is "com",
22 // - the public suffix of "foo1.foo2.foo3.co.uk" is "co.uk", and
23 // - the public suffix of "bar.pvt.k12.ma.us" is "pvt.k12.ma.us".
32 // A public suffix list implementation is in the package
35 // PublicSuffix returns the public suffix of domain.
42 // String returns a description of the source of this public suffix
50 // PublicSuffixList is the public suffix list that determines whether
145 // hasDotSuffix reports whether s ends in "."+suffix.
146 func hasDotSuffix(s, suffix string) bool {
147 return len(s) > len(suffix) && s[len(s)-len(suffix)-1] == '.' && s[len(s)-len(suffix):] == suffix
345 suffix := psl.PublicSuffix(host)
346 if suffix == host {
349 i = len(host) - len(suffix)
351 // The provided public suffix list psl is broken.
455 // the one exception of a public suffix below).