etld

package
v0.0.0-...-3d67573 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

README

etld

etld is an effective TLD matcher that returns the length of the effective domain name for the given string. It uses the data set from https://www.publicsuffix.org/list/effective_tld_names.dat

For extracting public suffxies, please use golang.org/x/net/publicsuffix.

Documentation

Overview

etld is an effective TLD matcher that returns the length of the effective domain name for the given string. It uses the data set from https://www.publicsuffix.org/list/effective_tld_names.dat

For extracting public suffxies, please use golang.org/x/net/publicsuffix.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(s string) int

Match returns the length of the ETLD matched, if no match, then 0 is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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