minimatch

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package minimatch ports minimatch 10.2.6 (the glob matcher Pi uses for model scopes and package resource filters): brace expansion, `!` negation, `**`, character classes, extglobs and dot handling. Matching of one path portion is a regular expression, as in minimatch.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Match

func Match(name, pattern string, options Options) bool

Match reports whether name matches the glob pattern, as minimatch(name, pattern, options).

Types

type Options

type Options struct {
	// NoCase makes the match case-insensitive.
	NoCase bool
	// Dot lets wildcards match a leading dot.
	Dot bool
}

Options are the minimatch options that change a match. Every other option has its default.

Jump to

Keyboard shortcuts

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