package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: May 5, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package domains provides a means of testing if the host in a URL is part of a list of domains.
Domains validates if the host in a URL is part of a list of domains.
New builds a new Domains group from the provided entries. If an entry is not a valid domain, an error is returned.
func (Domains) Domain ¶
Domain returns the domain that the host in the URL is part of. Returns false if the URL is not part of any domain.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.