glob

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package glob implements the tiny wildcard language pano uses for host and path matching: '*' matches any run of characters (including '.' and '/'), '?' matches one character, and matching is case-insensitive.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsPattern

func IsPattern(p string) bool

IsPattern reports whether p contains wildcards.

func Match

func Match(pattern, s string) bool

Match reports whether s matches pattern.

func MatchAny

func MatchAny(patterns []string, s string) bool

MatchAny reports whether s matches any pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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