Documentation
¶
Overview ¶
Package wildcard provides simple wildcard pattern matching for tool filtering.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Match ¶
Match reports whether the name matches the pattern.
- Only '*' is special; it matches any run of characters (excluding newlines).
- All other characters are literal. Matching is anchored to the full string.
- With zero inputs, it returns false.
func MatchAll ¶
MatchAll reports whether the name matches all of the patterns. See Match for details on matching behavior.
func MatchAny ¶
MatchAny reports whether the name matches any of the patterns. See Match for details on matching behavior.
func MatchAnyExplicit ¶
MatchAnyExplicit reports whether the name matches any pattern, skipping the bare "*" wildcard. Use this for opt-in resolution where "*" means "all defaults" but should not satisfy explicit opt-in.
func MatchMultiline ¶
MatchMultiline reports whether the name matches the pattern. Like Match, but * also matches newlines (uses [\s\S]* instead of .*). Use this for matching content that may span multiple lines.
Types ¶
This section is empty.