hostpattern

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package hostpattern matches host strings against simple scope-style patterns (exact, *.wildcard). Regex host rules live in internal/scope.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchHost

func MatchHost(pattern, host string) bool

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).

Types

This section is empty.

Jump to

Keyboard shortcuts

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