Documentation
¶
Overview ¶
Package hostpattern matches host names against patterns: an exact host, *.example.com for every subdomain of example.com, or * for every host.
Index ¶
Constants ¶
View Source
const ( // Any matches every host. Any = "*" // WildcardPrefix starts a pattern that matches subdomains. WildcardPrefix = "*." )
Variables ¶
This section is empty.
Functions ¶
func Canonical ¶
Canonical returns host lower-cased, without surrounding spaces, trailing dots, or the brackets of an IPv6 literal.
func Match ¶
Match reports whether host matches pattern. A *. pattern matches the subdomains of its domain but not the domain itself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.