hostname

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMatch

func IsMatch(match, candidate string) bool

检查目标主机名是否匹配待匹配主机名。

入参:

  • match: 待匹配主机名。可以是泛域名,如 "*.example.com"。
  • candidate: 目标主机名。如 "sub.example.com"。

出参:

  • 是否匹配。

Types

This section is empty.

Jump to

Keyboard shortcuts

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