Documentation ¶
Overview ¶
Package publicsuffix is a drop-in replacement for the golang.org/x/net/publicsuffix based on the weppos/publicsuffix package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EffectiveTLDPlusOne ¶
EffectiveTLDPlusOne returns the effective top level domain plus one more label. For example, the eTLD+1 for "foo.bar.golang.org" is "golang.org".
func PublicSuffix ¶
PublicSuffix returns the public suffix of the domain using a copy of the publicsuffix.org database packaged into this library.
Note. To maintain compatibility with the golang.org/x/net/publicsuffix this method doesn't return an error. However, in case of error, the returned value is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.