...

Package iana

import "github.com/letsencrypt/boulder/iana"
Overview
Index

Overview ▾

func ExtractSuffix

func ExtractSuffix(name string) (string, error)

ExtractSuffix returns the public suffix of the domain using only the "ICANN" section of the Public Suffix List database. If the domain does not end in a suffix that belongs to an IANA-assigned domain, ExtractSuffix returns an error.