globmatch

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package globmatch compiles the small, anchored glob language used by local policies.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(glob string) (*regexp.Regexp, error)

Compile supports * (any run) and ? (one character). All other characters are literal. Patterns that match every string are rejected.

func Segments

func Segments(subject string) []string

Segments returns the full subject and each shell segment. The caller may match either form, preserving the existing never_send behavior.

Types

This section is empty.

Jump to

Keyboard shortcuts

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