pathglob

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT 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. invariant: pathglob-anchored

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