Discover Packages
github.com/Veyal/interceptor
internal
hostpattern
package
Version:
v0.29.0
Opens a new window with list of versions in this module.
Published: Jul 7, 2026
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package hostpattern matches host strings against simple scope-style patterns
(exact, *.wildcard). Regex host rules live in internal/scope.
MatchHost reports whether host matches pattern. An empty pattern matches every
host. "*.acme.com" matches acme.com and every subdomain; otherwise the match
is exact (case-insensitive).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.