pathglob

package
v0.38.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package pathglob is awf's single glob dialect (ADR-0077): anchored full-path doublestar matching against slash-separated repo-relative paths. There is deliberately no basename mode - `*.go` matches only top-level .go files; any-depth is written `**/*.go`. Leaf package: imports nothing from awf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(pattern, relPath string) bool

Match reports whether the slash-separated repo-relative path matches the anchored pattern. A malformed pattern matches nothing - Validate at config load / audit-input building keeps that branch cold in practice. touches-state: config/validation:pathglob-anchored - anchored full-path match; proof in pathglob_test.go

func MatchAny added in v0.30.0

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

MatchAny reports whether the path matches at least one of the patterns.

func Validate

func Validate(pattern string) error

Validate rejects a malformed doublestar pattern.

Types

This section is empty.

Jump to

Keyboard shortcuts

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