glob

package
v0.0.1-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package glob is a dep-free path-glob matcher supporting *, ?, and **. ** matches zero or more path segments (recursive); * and ? match within a single segment. Shared by the tool and policy packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern, path string) bool

Match reports whether path matches pattern. Pattern segments are split on "/". A leading "/" or "./" in either operand is treated per filepath semantics after ToSlash normalization.

Types

This section is empty.

Jump to

Keyboard shortcuts

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