publicsuffix

package
v0.0.0-...-d43b9fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 1 Imported by: 0

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

func EffectiveTLDPlusOne(domain string) (string, error)

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

func PublicSuffix(domain string) (publicSuffix string, icann bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL