pathmatch

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pathmatch provides slash-separated path matching helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchGlob

func MatchGlob(pattern, path string) (bool, error)

MatchGlob reports whether path matches pattern. It returns malformed glob errors instead of silently treating them as non-matches.

func ValidateGlob

func ValidateGlob(pattern string) error

ValidateGlob validates a slash-separated glob pattern. ** is valid only as a whole segment and matches zero or more path segments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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